{"id":1393,"date":"2026-07-27T03:20:18","date_gmt":"2026-07-27T03:20:18","guid":{"rendered":"https:\/\/www.vpascode.com\/ru\/docs\/uncategorized\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships\/"},"modified":"2026-07-29T08:53:53","modified_gmt":"2026-07-29T08:53:53","slug":"tree-chart-hierarchical-data-and-structural-relationships-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/","title":{"rendered":"Tree Chart: Hierarchical Data and Structural Relationships"},"content":{"rendered":"<p>When presenting structured data with clear parent-child relationships\u2014such as organizational charts, file system directories, decision trees, or taxonomy classifications\u2014the <strong>Tree Chart<\/strong> provides an intuitive visual framework. By arranging data nodes along branching paths, tree charts allow users to explore nested hierarchies and trace connections from a central root node down through sub-branches.<\/p>\n<h2>The Mechanics of Tree Charts<\/h2>\n<p>In Apache ECharts, tree charts use <code>type: 'tree'<\/code>. Unlike standard charts with explicit X and Y axes, tree charts construct layout positions automatically from a nested JavaScript object containing a <code>name<\/code> and an optional <code>children<\/code> array.<\/p>\n<h3>1. Essential Setup<\/h3>\n<p>To construct a basic tree chart, define your nested data structure and set <code>type: 'tree'<\/code> inside the series array:<\/p>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">ECharts<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNqtVM9LwzAUvgv+D7lILx62wRAqHmTbTdlAJ4LskDVvXSBNQpoW59j\/7kvttpqmuonvUpr3fd9778sPpS1XktyR7eUFwbBKCct1vP+v1gxPUzAxibiFLLpuZaYSc5kqcshUCdFXflfjcjAc8pi8HWkN7UplowEFrAFoirtg1FKkegQXkmaONJpMfY6LZM0FMyC\/lW3GNrzcUH6ZEbUiM6NYkdhQjZNrHWrupWtR8kglRfuig1e\/MuevZAw5T2XF6iYtwqmuOqe6MZEpl4AbKtP\/deQZkjV5AMrO8GIM5VTnh57+5Ed72UPuFl47VuHliIZX\/vwCVhYT\/XZmqaxVWZCE12ftWINeK5VvsqUST\/wDR+33\/GJ0CSIObZtWOXc3GkVdR6FdKsFYnlBxL\/AcuYvLGRMQQtIaUbUZAqyUtHWLA8+3lj20dK9AoOXuYbyBOts4b6rmZJVHbcju52HgXVPJ7iUbKSGoznF+awrwUFTyjLrWx4WpvnONzxlib4a9I7Iuhcdud\/sJDBwkBA==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-echarts\"><code data-language=\"echarts\" class=\"language-echarts\">option = {\r\n    tooltip: {\r\n        trigger: 'item',\r\n        triggerOn: 'mousemove'\r\n    },\r\n    series: [\r\n        {\r\n            type: 'tree',\r\n            data: [{\r\n                name: 'CEO',\r\n                children: [\r\n                    {\r\n                        name: 'VP of Product',\r\n                        children: [\r\n                            { name: 'Product Manager' },\r\n                            { name: 'UX Designer' }\r\n                        ]\r\n                    },\r\n                    {\r\n                        name: 'VP of Engineering',\r\n                        children: [\r\n                            { name: 'Tech Lead' },\r\n                            { name: 'DevOps Engineer' }\r\n                        ]\r\n                    }\r\n                ]\r\n            }],\r\n            top: '5%',\r\n            left: '15%',\r\n            bottom: '5%',\r\n            right: '20%',\r\n            symbolSize: 10,\r\n            label: {\r\n                position: 'left',\r\n                verticalAlign: 'middle',\r\n                align: 'right',\r\n                fontSize: 12\r\n            },\r\n            leaves: {\r\n                label: {\r\n                    position: 'right',\r\n                    verticalAlign: 'middle',\r\n                    align: 'left'\r\n                }\r\n            },\r\n            expandAndCollapse: true,\r\n            animationDurationUpdate: 750\r\n        }\r\n    ]\r\n};<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNqtVM9LwzAUvgv+D7lILx62wRAqHmTbTdlAJ4LskDVvXSBNQpoW59j\/7kvttpqmuonvUpr3fd9778sPpS1XktyR7eUFwbBKCct1vP+v1gxPUzAxibiFLLpuZaYSc5kqcshUCdFXflfjcjAc8pi8HWkN7UplowEFrAFoirtg1FKkegQXkmaONJpMfY6LZM0FMyC\/lW3GNrzcUH6ZEbUiM6NYkdhQjZNrHWrupWtR8kglRfuig1e\/MuevZAw5T2XF6iYtwqmuOqe6MZEpl4AbKtP\/deQZkjV5AMrO8GIM5VTnh57+5Ed72UPuFl47VuHliIZX\/vwCVhYT\/XZmqaxVWZCE12ftWINeK5VvsqUST\/wDR+33\/GJ0CSIObZtWOXc3GkVdR6FdKsFYnlBxL\/AcuYvLGRMQQtIaUbUZAqyUtHWLA8+3lj20dK9AoOXuYbyBOts4b6rmZJVHbcju52HgXVPJ7iUbKSGoznF+awrwUFTyjLrWx4WpvnONzxlib4a9I7Iuhcdud\/sJDBwkBA==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"ZnJrmRC\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1794\" height=\"965\" class=\"alignnone size-full wp-image-1394 \" src=\"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2.png 1794w, https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2-300x161.png 300w, https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2-1024x551.png 1024w, https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2-768x413.png 768w, https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2-1536x826.png 1536w\" sizes=\"(max-width: 1794px) 100vw, 1794px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Advanced Layout Orientations<\/h2>\n<p>Tree charts can adapt to different space constraints and design requirements by changing their layout direction or switching to a radial display.<\/p>\n<h3>1. Radial Tree Layout<\/h3>\n<p>Set <code>layout: 'radial'<\/code> to project branches outward from a center point, ideal for wide hierarchies with many leaf nodes:<\/p>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">ECharts<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNrFVE1rg0AQvRf6H\/ZSvPRQTUqLpYdo7oV+nEoOm7iNC+6OrGPBBv97Z20+7KoklkDnsjjvzdudhzzIUYJmj2xzecGoECBDmYe776Zn5HotTMg8iUJ51x3kSROmoCyEgk\/h\/eD1llcII0URsvfDWEu7UalyQQJohGiL28p4BSUSaHgieebCCUdOyo6eLc2V1XwGQHfI1iqVWWKE\/vWsdm362y3pyHC9StmsT\/7ka\/bX7VRnvrd37jg5GEOeEHmYu+iHhuRP9ic6rz\/RGH+i4F9Wjs+7cjxm5XjMLxFPxpCnfzKz23aY9cJ5AQLFj+ffX7k2LgERlMWmHYyCKMX+sUx8DCBFpZaQvcgv2s8PHFBqiRQ5r5RKc5FjGjKXwbVU3MbnvDTN+ZZTIJHW3e3Ngbl1gLauH74BFRcEBQ==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-echarts\"><code data-language=\"echarts\" class=\"language-echarts\">option = {\r\n    tooltip: {\r\n        trigger: 'item',\r\n        triggerOn: 'mousemove'\r\n    },\r\n    series: [\r\n        {\r\n            type: 'tree',\r\n            layout: 'radial',\r\n            data: [{\r\n                name: 'Root',\r\n                children: [\r\n                    {\r\n                        name: 'Branch A',\r\n                        children: [\r\n                            { name: 'A1' },\r\n                            { name: 'A2' },\r\n                            { name: 'A3' }\r\n                        ]\r\n                    },\r\n                    {\r\n                        name: 'Branch B',\r\n                        children: [\r\n                            { name: 'B1' },\r\n                            { name: 'B2' }\r\n                        ]\r\n                    },\r\n                    {\r\n                        name: 'Branch C',\r\n                        children: [\r\n                            { name: 'C1' },\r\n                            { name: 'C2' },\r\n                            { name: 'C3' },\r\n                            { name: 'C4' }\r\n                        ]\r\n                    }\r\n                ]\r\n            }],\r\n            top: '18%',\r\n            bottom: '14%',\r\n            right: '18%',\r\n            left: '18%',\r\n            symbolSize: 12,\r\n            initialTreeDepth: 2,\r\n            animationDurationUpdate: 750\r\n        }\r\n    ]\r\n};<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNrFVE1rg0AQvRf6H\/ZSvPRQTUqLpYdo7oV+nEoOm7iNC+6OrGPBBv97Z20+7KoklkDnsjjvzdudhzzIUYJmj2xzecGoECBDmYe776Zn5HotTMg8iUJ51x3kSROmoCyEgk\/h\/eD1llcII0URsvfDWEu7UalyQQJohGiL28p4BSUSaHgieebCCUdOyo6eLc2V1XwGQHfI1iqVWWKE\/vWsdm362y3pyHC9StmsT\/7ka\/bX7VRnvrd37jg5GEOeEHmYu+iHhuRP9ic6rz\/RGH+i4F9Wjs+7cjxm5XjMLxFPxpCnfzKz23aY9cJ5AQLFj+ffX7k2LgERlMWmHYyCKMX+sUx8DCBFpZaQvcgv2s8PHFBqiRQ5r5RKc5FjGjKXwbVU3MbnvDTN+ZZTIJHW3e3Ngbl1gLauH74BFRcEBQ==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"EFQEBNb\"><img decoding=\"async\" width=\"1164\" height=\"1091\" class=\"alignnone size-full wp-image-1395 \" src=\"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66ceb2d9ec5.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66ceb2d9ec5.png 1164w, https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66ceb2d9ec5-300x281.png 300w, https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66ceb2d9ec5-1024x960.png 1024w, https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66ceb2d9ec5-768x720.png 768w\" sizes=\"(max-width: 1164px) 100vw, 1164px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Fine-Tuning Layout and Styling<\/h2>\n<p>Customizing node symbols, line curves, and level-specific formatting helps highlight key structural tiers across large diagrams.<\/p>\n<h3>1. Curved Connectors and Level-Based Node Styling<\/h3>\n<p>Use <code>lineStyle.curveness<\/code> to smooth connection lines, and define <code>levels<\/code> array configs to style nodes according to their depth in the hierarchy:<\/p>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">ECharts<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNqtVMFOAjEQvZv4D02M2QsRNZ7WeEHj0RBAL8ZD6Q5ssdtp2kGzGv7d2QUVSglqnMvSvpl5M8O8oiONVlyJ98MDwUaIhrTLP8\/tndfTKfhcZJqgypbAorP8BvAaQi4ev\/3XQtvw2gHHkgfIOpsQcqwlBke9rCO6XTFCxyWIHhJhtYJlU+FmXCFJMmVE1JiVVUPW9zgDRWKASDFpY6rUpvBgN+pet\/f09RrFrUdLYItU+h\/TfNF9Zh2AVJR9TXev\/8Mc2Hu381Ma2pV\/f9s9qZ7\/ves7LOBkFn7Rd7+mEu2fWt++jjwXT1EVhCyI7Oz0OO7awITSyLjd4DTGcip3hIW6GqNhDCpH9bX2ykDaZ6jfeA5nFxEIxRSGpWwV59DURltYSus+QBDK6+CEZ2lIO50b6YVCa\/nIEgtC20AgC4EToeb+BcJmbm01aWlGLOQbcFTm4jyeB7MNqTaQpzbpVRepoHZl0GDzwBwppbLo34g55BhMMr\/DoJtGmscGXWpDJyzZ1eDO97CAfGmetQTN7gKiIpY7kG37RSu4dlz95IVcXH4AMiMogA==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-echarts\"><code data-language=\"echarts\" class=\"language-echarts\">option = {\r\n    tooltip: {\r\n        trigger: 'item'\r\n    },\r\n    series: [\r\n        {\r\n            type: 'tree',\r\n            orient: 'TB', \/\/ Top to Bottom orientation\r\n            data: [{\r\n                name: 'Project Root',\r\n                children: [\r\n                    {\r\n                        name: 'Frontend',\r\n                        children: [\r\n                            { name: 'React' },\r\n                            { name: 'Vue' }\r\n                        ]\r\n                    },\r\n                    {\r\n                        name: 'Backend',\r\n                        children: [\r\n                            { name: 'Node.js' },\r\n                            { name: 'Python' }\r\n                        ]\r\n                    }\r\n                ]\r\n            }],\r\n            top: '10%',\r\n            left: '10%',\r\n            bottom: '10%',\r\n            right: '10%',\r\n            symbol: 'emptyCircle',\r\n            symbolSize: 14,\r\n            edgeShape: 'polyline', \/\/ Uses crisp rectangular connections instead of curves\r\n            initialTreeDepth: 2,\r\n            lineStyle: {\r\n                width: 2,\r\n                color: '#ccc'\r\n            },\r\n            label: {\r\n                position: 'top',\r\n                fontSize: 12\r\n            },\r\n            leaves: {\r\n                label: {\r\n                    position: 'bottom'\r\n                }\r\n            }\r\n        }\r\n    ]\r\n};<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNqtVMFOAjEQvZv4D02M2QsRNZ7WeEHj0RBAL8ZD6Q5ssdtp2kGzGv7d2QUVSglqnMvSvpl5M8O8oiONVlyJ98MDwUaIhrTLP8\/tndfTKfhcZJqgypbAorP8BvAaQi4ev\/3XQtvw2gHHkgfIOpsQcqwlBke9rCO6XTFCxyWIHhJhtYJlU+FmXCFJMmVE1JiVVUPW9zgDRWKASDFpY6rUpvBgN+pet\/f09RrFrUdLYItU+h\/TfNF9Zh2AVJR9TXev\/8Mc2Hu381Ma2pV\/f9s9qZ7\/ves7LOBkFn7Rd7+mEu2fWt++jjwXT1EVhCyI7Oz0OO7awITSyLjd4DTGcip3hIW6GqNhDCpH9bX2ykDaZ6jfeA5nFxEIxRSGpWwV59DURltYSus+QBDK6+CEZ2lIO50b6YVCa\/nIEgtC20AgC4EToeb+BcJmbm01aWlGLOQbcFTm4jyeB7MNqTaQpzbpVRepoHZl0GDzwBwppbLo34g55BhMMr\/DoJtGmscGXWpDJyzZ1eDO97CAfGmetQTN7gKiIpY7kG37RSu4dlz95IVcXH4AMiMogA==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"pJSXtAh\"><img decoding=\"async\" width=\"1313\" height=\"1335\" class=\"alignnone size-full wp-image-1396 \" src=\"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cebfab2b6.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cebfab2b6.png 1313w, https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cebfab2b6-295x300.png 295w, https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cebfab2b6-1007x1024.png 1007w, https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cebfab2b6-768x781.png 768w\" sizes=\"(max-width: 1313px) 100vw, 1313px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Strategic Best Practices<\/h2>\n<ul>\n<li><strong>Control Initial Collapse Depth:<\/strong> Set <code>initialTreeDepth<\/code> (e.g., <code>1<\/code> or <code>2<\/code>) on large datasets to keep the chart clean on initial load while letting users click nodes to expand details.<\/li>\n<li><strong>Choose the Right Orientation:<\/strong> Use horizontal (`LR`) or radial (`radial`) layouts for deep nested structures with long label text, and vertical (`TB`) layouts for shallow, wide org structures.<\/li>\n<li><strong>Differentiate Leaf Nodes:<\/strong> Use the <code>leaves<\/code> property to style end-nodes differently from parent container nodes so users can easily distinguish branches from endpoints.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When presenting structured data with clear parent-child relationships\u2014such as organizational charts, file system directories, decision trees, or taxonomy classifications\u2014the Tree Chart provides an intuitive visual framework. By arranging data nodes along branching paths, tree charts allow users to explore nested&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":1254,"menu_order":25,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"ld_collection":[14],"class_list":["post-1393","ld_docs","type-ld_docs","status-publish","hentry","ld_collection-vpascode-docs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ECharts Tree Chart Guide | VPasCode Text to Diagram Tool<\/title>\n<meta name=\"description\" content=\"Script branching node tree diagrams from JSON data using ECharts in VPasCode, a free diagram-as-code tool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ECharts Tree Chart Guide | VPasCode Text to Diagram Tool\" \/>\n<meta property=\"og:description\" content=\"Script branching node tree diagrams from JSON data using ECharts in VPasCode, a free diagram-as-code tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-29T08:53:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 \u043c\u0438\u043d\u0443\u0442\u044b\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/tree-chart-hierarchical-data-and-structural-relationships-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/tree-chart-hierarchical-data-and-structural-relationships-guide\\\/\",\"name\":\"ECharts Tree Chart Guide | VPasCode Text to Diagram Tool\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/tree-chart-hierarchical-data-and-structural-relationships-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/tree-chart-hierarchical-data-and-structural-relationships-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/wp-content\\\/uploads\\\/sites\\\/11\\\/2026\\\/07\\\/img_6a66cea84c9c2.png\",\"datePublished\":\"2026-07-27T03:20:18+00:00\",\"dateModified\":\"2026-07-29T08:53:53+00:00\",\"description\":\"Script branching node tree diagrams from JSON data using ECharts in VPasCode, a free diagram-as-code tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/tree-chart-hierarchical-data-and-structural-relationships-guide\\\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/tree-chart-hierarchical-data-and-structural-relationships-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/tree-chart-hierarchical-data-and-structural-relationships-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/wp-content\\\/uploads\\\/sites\\\/11\\\/2026\\\/07\\\/img_6a66cea84c9c2.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/wp-content\\\/uploads\\\/sites\\\/11\\\/2026\\\/07\\\/img_6a66cea84c9c2.png\",\"width\":1794,\"height\":965},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/tree-chart-hierarchical-data-and-structural-relationships-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"ECharts Playbook\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Tree Chart: Hierarchical Data and Structural Relationships\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/wp-content\\\/uploads\\\/sites\\\/11\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/wp-content\\\/uploads\\\/sites\\\/11\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ru\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ECharts Tree Chart Guide | VPasCode Text to Diagram Tool","description":"Script branching node tree diagrams from JSON data using ECharts in VPasCode, a free diagram-as-code tool.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/","og_locale":"ru_RU","og_type":"article","og_title":"ECharts Tree Chart Guide | VPasCode Text to Diagram Tool","og_description":"Script branching node tree diagrams from JSON data using ECharts in VPasCode, a free diagram-as-code tool.","og_url":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/","og_site_name":"VPasCode","article_modified_time":"2026-07-29T08:53:53+00:00","og_image":[{"url":"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"2 \u043c\u0438\u043d\u0443\u0442\u044b"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/","url":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/","name":"ECharts Tree Chart Guide | VPasCode Text to Diagram Tool","isPartOf":{"@id":"https:\/\/www.vpascode.com\/ru\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2.png","datePublished":"2026-07-27T03:20:18+00:00","dateModified":"2026-07-29T08:53:53+00:00","description":"Script branching node tree diagrams from JSON data using ECharts in VPasCode, a free diagram-as-code tool.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/"]}]},{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2.png","contentUrl":"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/07\/img_6a66cea84c9c2.png","width":1794,"height":965},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/tree-chart-hierarchical-data-and-structural-relationships-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/ru\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/ru\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"ECharts Playbook","item":"https:\/\/www.vpascode.com\/ru\/docs\/vpascode-docs\/echarts-playbook\/"},{"@type":"ListItem","position":4,"name":"Tree Chart: Hierarchical Data and Structural Relationships"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/ru\/#website","url":"https:\/\/www.vpascode.com\/ru\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/ru\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/ru\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/ru\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/ru\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/www.vpascode.com\/ru\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/ru\/wp-content\/uploads\/sites\/11\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/ru\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/ru\/wp-json\/wp\/v2\/ld_docs\/1393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/ru\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/ru\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/ru\/wp-json\/wp\/v2\/users\/3"}],"up":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/ru\/wp-json\/wp\/v2\/ld_docs\/1254"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/ru\/wp-json\/wp\/v2\/media?parent=1393"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/ru\/wp-json\/wp\/v2\/ld_collection?post=1393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}