Skip to content

Commit d090592

Browse files
feat(altair): implement scatter-basic
Implements basic scatter plot for altair library with: - 100 random data points with correlation - Python Blue (#306998) color from style guide - 4800x2700px output via scale_factor=3 - Proper axis labels and title - Tooltips for interactivity
1 parent 7c4e4f0 commit d090592

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plots/altair/point/scatter-basic/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
chart = (
2020
alt.Chart(data)
2121
.mark_point(filled=True, opacity=0.7, size=100, color="#306998")
22-
.encode(x=alt.X("x:Q", title="X Value"), y=alt.Y("y:Q", title="Y Value"))
22+
.encode(x=alt.X("x:Q", title="X Value"), y=alt.Y("y:Q", title="Y Value"), tooltip=["x:Q", "y:Q"])
2323
.properties(width=1600, height=900, title="Basic Scatter Plot")
2424
.configure_axis(labelFontSize=16, titleFontSize=20)
2525
.configure_title(fontSize=20)

0 commit comments

Comments
 (0)