Skip to content

Commit e4ff910

Browse files
author
Joseph Damiba
committed
add figure for mixed form data
1 parent 3e74b79 commit e4ff910

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/python/bar-charts.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ fig = px.bar(long_df, x="nation", y="count", color="medal", title="Long-Form Inp
6565
fig.show()
6666
```
6767

68-
```python
69-
70-
```
71-
7268
```python
7369
long_df
7470
```
@@ -106,11 +102,14 @@ For detailed column-input-format documentation, see the [Plotly Express Argumen
106102
```python
107103
import plotly.express as px
108104
mixed_df = px.data.experiment(indexed=True)
109-
mixed_df.head()
105+
fig = px.bar(mixed_df, x=mixed_df.index,
106+
y=["experiment_1", "experiment_2", "experiment_3"],
107+
title="Mixed Form Input")
108+
fig.show()
110109
```
111110

112111
```python
113-
mixed_df
112+
mixed_df.head()
114113
```
115114

116115
### Customize bar chart with Plotly Express

0 commit comments

Comments
 (0)