Skip to content

Commit ebece08

Browse files
Update doc/python/horizontal-bar-charts.md
adding python decorator Co-authored-by: Liam Connors <[email protected]>
1 parent 6b70a42 commit ebece08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: doc/python/horizontal-bar-charts.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ fig.show()
221221

222222
Diverging bar charts show counts of positive outcomes or sentiments to the right of zero and counts of negative outcomes to the left of zero, allowing the reader to easily spot areas of excellence and concern. Implementing presentation-ready versions of them in Plotly requires a few non standard layout and legendrank options.
223223

224-
```import pandas as pd
224+
```python
225225
import plotly.graph_objects as go
226+
import pandas as pd
226227

227228

228229
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/refs/heads/master/gss_2002_5_pt_likert.csv')

0 commit comments

Comments
 (0)