XML Volume Battle Kit (5): Tree Map

xiaoxiao2021-03-06  42

XML Volume Battle Kit (5): Tree Map

motivation:

I originally think of doing a binary tree because it is necessary to make a company structure map. The previous practices are to draw a picture directly with image software. Very nice, but every time there is a change, you need to draw a new one. On the other hand, the display of the line on the web page is quite limited. Based on dynamic generated data, the positioning is quite difficult, and it is also very common in aesthetics. After doing various attempts, decided to use XML XSL to make data operations; use VML to beautify the lines, and use JavaScript to locate objects.

material:

Tree diagram of XML volume

There are 2 files: flow2.xml and flow2.xsl

effect:

Browse here

explain:

Two-fork trees (1)