You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h3id="Sunburst-with-Repeated-Labels">Sunburst with Repeated Labels<aclass="anchor-link" href="#Sunburst-with-Repeated-Labels">¶</a></h3>
131
+
<h3id="Branchvalues">Branchvalues<aclass="anchor-link" href="#Branchvalues">¶</a></h3><p>With branchvalues "total", the value of the parent represents the width of its wedge. In the example below, "Enoch" is 4 and "Awan" is 6 and so Enoch's width is 4/6ths of Awans. With branchvalues "remainder", the parent's width is determined by its own value plus those of its children. So, Enoch's width is 4/10ths of Awan's (4 / (6 + 4)).</p>
132
+
<p>Note that this means that the sum of the values of the children cannot exceed the value of their parent when branchvalues "total". When branchvalues "relative" (the default), children will not take up all of the space below their parent (unless the parent is the root and it has a value of 0).</p>
133
+
132
134
</div>
133
135
</div>
134
136
</div>
@@ -140,6 +142,62 @@ <h3 id="Sunburst-with-Repeated-Labels">Sunburst with Repeated Labels<a class="an
Copy file name to clipboardExpand all lines: _posts/python/basic/sunburst/sunburst-charts.ipynb
+57-5Lines changed: 57 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@
28
28
{
29
29
"data": {
30
30
"text/plain": [
31
-
"'3.8.0rc1'"
31
+
"'3.10.0'"
32
32
]
33
33
},
34
34
"execution_count": 1,
@@ -90,7 +90,10 @@
90
90
"cell_type": "markdown",
91
91
"metadata": {},
92
92
"source": [
93
-
"### Sunburst with Repeated Labels"
93
+
"### Branchvalues ###\n",
94
+
"With branchvalues \"total\", the value of the parent represents the width of its wedge. In the example below, \"Enoch\" is 4 and \"Awan\" is 6 and so Enoch's width is 4/6ths of Awans. With branchvalues \"remainder\", the parent's width is determined by its own value plus those of its children. So, Enoch's width is 4/10ths of Awan's (4 / (6 + 4)).\n",
95
+
"\n",
96
+
"Note that this means that the sum of the values of the children cannot exceed the value of their parent when branchvalues \"total\". When branchvalues \"relative\" (the default), children will not take up all of the space below their parent (unless the parent is the root and it has a value of 0)."
0 commit comments