Skip to content

Commit 472aaaf

Browse files
author
“mahdis-z”
committed
final revision
1 parent 5d0e77a commit 472aaaf

File tree

2 files changed

+3
-147
lines changed

2 files changed

+3
-147
lines changed

python/treemap-charts.md

Lines changed: 0 additions & 144 deletions
This file was deleted.

python/treemaps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jupyter:
3838

3939
### Basic Treemap
4040

41-
[Treemap charts](https://en.wikipedia.org/wiki/Treemapping) visualize hierarchical data using nested rectangles. Same as [Sunburst](https://plot.ly/python/sunburst-charts/) the hierarchy is defined by [labels](https://plot.ly/python/reference/#treemap-labels) and [parents]((https://plot.ly/python/reference/#treemap-parents)) attributes. Click on one sector to zoom in, which also displays a pathbar in the upper-left corner of your treemap, and to zoom out click on the path bar.
41+
[Treemap charts](https://en.wikipedia.org/wiki/Treemapping) visualize hierarchical data using nested rectangles. Same as [Sunburst](https://plot.ly/python/sunburst-charts/) the hierarchy is defined by [labels](https://plot.ly/python/reference/#treemap-labels) and [parents]((https://plot.ly/python/reference/#treemap-parents)) attributes. Click on one sector to zoom in/out, which also displays a pathbar in the upper-left corner of your treemap. To zoom out you can use the path bar as well.
4242

4343
```python
4444
import plotly.graph_objects as go
@@ -71,7 +71,7 @@ parents = ["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"]
7171
fig = make_subplots(
7272
cols = 2, rows = 1,
7373
column_widths = [0.4, 0.4],
74-
subplot_titles = ('branchvalues: <b>remainder</b>', 'branchvalues: <b>total</b>'),
74+
subplot_titles = ('branchvalues: <b>remainder<br />&nbsp;<br />', 'branchvalues: <b>total<br />&nbsp;<br />'),
7575
specs = [[{'type': 'treemap', 'rowspan': 1}, {'type': 'treemap'}]]
7676
)
7777

@@ -80,7 +80,7 @@ fig.add_trace(go.Treemap(
8080
parents = parents,
8181
values = [10, 14, 12, 10, 2, 6, 6, 1, 4],
8282
textinfo = "label+value+percent parent+percent entry+percent root",
83-
pathbar = {"visible": False}),
83+
),
8484
row = 1, col = 1)
8585

8686
fig.add_trace(go.Treemap(

0 commit comments

Comments
 (0)