Skip to content

Commit c3b7ce1

Browse files
Apply suggestions from code review
Co-authored-by: Liam Connors <[email protected]>
1 parent 0f359b1 commit c3b7ce1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

doc/python/horizontal-bar-charts.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ fig.show()
111111
```
112112
### Small multiple horizontal bar charts show each component's size more clearly than a stacked bar
113113

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.
115-
116-
.
117-
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.
118115
```
119116
import pandas as pd
120117
import plotly.express as px
@@ -144,7 +141,7 @@ fig.update_layout(
144141
showlegend=False, # the legend does not add anything
145142
)
146143
147-
#remove up the default "facet_variable =" text from the title of each facet graph
144+
# remove the default "facet_variable =" text from the title of each facet graph
148145
fig.for_each_annotation(lambda a: a.update(text=a.text.split("=")[-1]))
149146
150147
# Remove duplicate axis labels

0 commit comments

Comments
 (0)