Skip to content

Commit ad1419f

Browse files
committed
Add Arnaud's edits
1 parent c31981f commit ad1419f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

content/library/api/charts/altair_chart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ tab1, tab2 = st.tabs(["Streamlit theme (default)", "Altair native theme"])
3131
with tab1:
3232
# Use the Streamlit theme.
3333
# This is the default. So you can also omit the theme argument.
34-
st.altair_chart(chart, use_container_width=use_container_width, theme="streamlit")
34+
st.altair_chart(chart, use_container_width=True, theme="streamlit")
3535
with tab2:
3636
# Use the native Altair theme.
37-
st.altair_chart(chart, use_container_width=use_container_width, theme=None)
37+
st.altair_chart(chart, use_container_width=True, theme=None)
3838
```
3939

4040
Click the tabs in the interactive app below to see the charts with the Streamlit theme enabled and disabled.
4141

4242
<Cloud src="https://doc-altair-chart.streamlit.app/?embed=true" height="500" />
4343

44-
If you're wondering if your own customizations will still be taken into account, don't worry! If you're an experienced Altair user and like to have your own special customizations, your changes in the chart configurations will still be taken into account. Here's an example of an Altair chart where manual color passing is done and reflected:
44+
If you're wondering if your own customizations will still be taken into account, don't worry! Any changes you make to chart configurations will be accounted for and reflected in the app. Here's an example of an Altair chart where manual color passing is done and reflected:
4545

4646
<Collapse title="See the code">
4747

content/library/api/charts/plotly_chart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Click the tabs in the interactive app below to see the charts with the Streamlit
4545

4646
<Cloud src="https://doc-plotly-chart-theme.streamlit.app/?embed=true" height="525" />
4747

48-
If you're wondering if your own customizations will still be taken into account, don't worry! If you're an experienced Plotly user and like to have your own special customizations, your changes in the chart configurations will still be taken into account. Here's an example of an Plotly chart where a custom color scale is defined and reflected:
48+
If you're wondering if your own customizations will still be taken into account, don't worry! Any changes you make to chart configurations will be accounted for and reflected in the app. Here's an example of an Plotly chart where a custom color scale is defined and reflected:
4949

5050
```python
5151
import plotly.express as px
@@ -63,9 +63,9 @@ fig = px.scatter(
6363

6464
tab1, tab2 = st.tabs(["Streamlit theme (default)", "Plotly native theme"])
6565
with tab1:
66-
st.plotly_chart(fig, use_conatiner_width=use_conatiner_width, theme="streamlit")
66+
st.plotly_chart(fig, use_conatiner_width=True, theme="streamlit")
6767
with tab2:
68-
st.plotly_chart(fig, use_conatiner_width=use_conatiner_width, theme=None)
68+
st.plotly_chart(fig, use_conatiner_width=True, theme=None)
6969
```
7070

7171
Notice how the custom color scale is still reflected in the chart, even when the Streamlit theme is enabled 👇

content/library/api/charts/vega_lite_chart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ with tab1:
4242
# Use the Streamlit theme.
4343
# This is the default. So you can also omit the theme argument.
4444
st.vega_lite_chart(
45-
source, chart, use_container_width=use_container_width, theme="streamlit"
45+
source, chart, use_container_width=True, theme="streamlit"
4646
)
4747
with tab2:
4848
st.vega_lite_chart(
49-
source, chart, use_container_width=use_container_width, theme=None
49+
source, chart, use_container_width=True, theme=None
5050
)
5151
```
5252

5353
Click the tabs in the interactive app below to see the charts with the Streamlit theme enabled and disabled.
5454

5555
<Cloud src="https://doc-vega-lite-theme.streamlit.app/?embed=true" height="500" />
5656

57-
If you're wondering if your own customizations will still be taken into account, don't worry! If you're an experienced Vega-Lite user and like to have your own special customizations, your changes in the chart configurations will still be taken into account.
57+
If you're wondering if your own customizations will still be taken into account, don't worry! Any changes you make to chart configurations will be accounted for and reflected in the app.

0 commit comments

Comments
 (0)