Maybe you can create two diagrams of the tree that you want:
one that displays all labels clearly, but doesn't fit in the screen (its width is much larger than screen width):
another that fits the screen, but doesn't display labels.
And then you allow user to scroll down the second diagram, similar to this example: (ofcourse, in your case, diagrams will look differently)