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
Copy file name to clipboardExpand all lines: doc/python/facet-plots.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,8 @@ fig.show()
54
54
55
55
### Bar Chart Row Facets
56
56
57
+
There is a more presentation-ready horizontal, faceted bar chart in the [horizontal bar documentation](/python/horizontal-bar-charts/#Small-multiple-horizontal-bar-charts-show-each-component's-size-more-clearly-than-a-stacked-bar)
Copy file name to clipboardExpand all lines: doc/python/horizontal-bar-charts.md
+43Lines changed: 43 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,49 @@ fig.add_trace(go.Bar(
107
107
))
108
108
109
109
fig.update_layout(barmode='stack')
110
+
fig.show()
111
+
```
112
+
### Small multiple horizontal bar charts show each component's size more clearly than a stacked bar
113
+
114
+
Bar charts with multiple components pose a fundamental trade off between presenting the total clearly and presenting the component values clearly. This small multiples approach shows the component magnitudes clearly at the cost of slightly obscuring the totals. A stacked bar does the opposite. Small multiple bar charts often work better in a horizontal orientation; and are easy to create with the px.bar orientation and facet_col parameters.
0 commit comments