Skip to content

Commit 6eade00

Browse files
Feature/st.scatter chart (#806)
* Add st.scatter_chart * Update streamlit.json * Update streamlit.json
1 parent 12db4bd commit 6eade00

File tree

6 files changed

+12594
-26
lines changed

6 files changed

+12594
-26
lines changed

content/library/api/api-reference.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -428,18 +428,7 @@ style_metric_cards()
428428
## Chart elements
429429

430430
<TileContainer>
431-
<RefCard href="/library/api-reference/charts/st.line_chart">
432-
<Image pure alt="screenshot" src="/images/api/line_chart.jpg" />
433-
434-
#### Simple line charts
435-
436-
Display a line chart.
437-
438-
```python
439-
st.line_chart(my_data_frame)
440-
```
441431

442-
</RefCard>
443432
<RefCard href="/library/api-reference/charts/st.area_chart">
444433
<Image pure alt="screenshot" src="/images/api/area_chart.jpg" />
445434

@@ -463,6 +452,30 @@ Display a bar chart.
463452
st.bar_chart(my_data_frame)
464453
```
465454

455+
</RefCard>
456+
<RefCard href="/library/api-reference/charts/st.line_chart">
457+
<Image pure alt="screenshot" src="/images/api/line_chart.jpg" />
458+
459+
#### Simple line charts
460+
461+
Display a line chart.
462+
463+
```python
464+
st.line_chart(my_data_frame)
465+
```
466+
467+
</RefCard>
468+
<RefCard href="/library/api-reference/charts/st.scatter_chart">
469+
<Image pure alt="screenshot" src="/images/api/scatter_chart.svg" />
470+
471+
#### Simple scatter charts
472+
473+
Display a line chart.
474+
475+
```python
476+
st.scatter_chart(my_data_frame)
477+
```
478+
466479
</RefCard>
467480
<RefCard href="/library/api-reference/charts/st.map">
468481
<Image pure alt="screenshot" src="/images/api/map.jpg" />

content/library/api/charts/charts.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@ finally we also provide a few chart types that are "native" to Streamlit,
1515
like `st.line_chart` and `st.area_chart`.
1616

1717
<TileContainer>
18-
<RefCard href="/library/api-reference/charts/st.line_chart">
19-
<Image pure alt="screenshot" src="/images/api/line_chart.jpg" />
20-
21-
#### Simple line charts
22-
23-
Display a line chart.
24-
25-
```python
26-
st.line_chart(my_data_frame)
27-
```
28-
29-
</RefCard>
3018
<RefCard href="/library/api-reference/charts/st.area_chart">
3119
<Image pure alt="screenshot" src="/images/api/area_chart.jpg" />
3220

@@ -50,6 +38,30 @@ Display a bar chart.
5038
st.bar_chart(my_data_frame)
5139
```
5240

41+
</RefCard>
42+
<RefCard href="/library/api-reference/charts/st.line_chart">
43+
<Image pure alt="screenshot" src="/images/api/line_chart.jpg" />
44+
45+
#### Simple line charts
46+
47+
Display a line chart.
48+
49+
```python
50+
st.line_chart(my_data_frame)
51+
```
52+
53+
</RefCard>
54+
<RefCard href="/library/api-reference/charts/st.scatter_chart">
55+
<Image pure alt="screenshot" src="/images/api/scatter_chart.svg" />
56+
57+
#### Simple scatter charts
58+
59+
Display a line chart.
60+
61+
```python
62+
st.scatter_chart(my_data_frame)
63+
```
64+
5365
</RefCard>
5466
<RefCard href="/library/api-reference/charts/st.map">
5567
<Image pure alt="screenshot" src="/images/api/map.jpg" />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: st.scatter_chart
3+
slug: /library/api-reference/charts/st.scatter_chart
4+
description: st.scatter_chart displays an scatter chart.
5+
---
6+
7+
<Autofunction function="streamlit.scatter_chart" />

content/menu.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,18 @@ site_menu:
122122
isVersioned: true
123123
- category: Streamlit library / API reference / Chart elements
124124
url: /library/api-reference/charts
125-
- category: Streamlit library / API reference / Chart elements / st.line_chart
126-
url: /library/api-reference/charts/st.line_chart
127-
isVersioned: true
128125
- category: Streamlit library / API reference / Chart elements / st.area_chart
129126
url: /library/api-reference/charts/st.area_chart
130127
isVersioned: true
131128
- category: Streamlit library / API reference / Chart elements / st.bar_chart
132129
url: /library/api-reference/charts/st.bar_chart
133130
isVersioned: true
131+
- category: Streamlit library / API reference / Chart elements / st.line_chart
132+
url: /library/api-reference/charts/st.line_chart
133+
isVersioned: true
134+
- category: Streamlit library / API reference / Chart elements / st.scatter_chart
135+
url: /library/api-reference/charts/st.scatter_chart
136+
isVersioned: true
134137
- category: Streamlit library / API reference / Chart elements / st.pyplot
135138
url: /library/api-reference/charts/st.pyplot
136139
isVersioned: true

0 commit comments

Comments
 (0)