diff --git a/doc/python/horizontal-bar-charts.md b/doc/python/horizontal-bar-charts.md index 274e53010b..1daf8c6505 100644 --- a/doc/python/horizontal-bar-charts.md +++ b/doc/python/horizontal-bar-charts.md @@ -112,7 +112,7 @@ fig.show() ### Small multiple horizontal bar charts show each component's size more clearly than a stacked bar 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. -``` +```python import pandas as pd import plotly.express as px