From 3c81689788dfc7f887b9c8fd0820623023bfd70a Mon Sep 17 00:00:00 2001 From: Gregor Trefalt Date: Thu, 7 Aug 2025 16:20:42 +0200 Subject: [PATCH] version 1. --- app.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/app.py b/app.py index 7a0ed12..fd330b0 100644 --- a/app.py +++ b/app.py @@ -23,18 +23,24 @@ radius = indices x = radius * np.cos(theta) y = radius * np.sin(theta) -df = pd.DataFrame({ - "x": x, - "y": y, - "idx": indices, - "rand": np.random.randn(num_points), -}) +df = pd.DataFrame( + { + "x": x, + "y": y, + "idx": indices, + "rand": np.random.randn(num_points), + } +) -st.altair_chart(alt.Chart(df, height=700, width=700) +st.text("Version 1") + +st.altair_chart( + alt.Chart(df, height=700, width=700) .mark_point(filled=True) .encode( x=alt.X("x", axis=None), y=alt.Y("y", axis=None), color=alt.Color("idx", legend=None, scale=alt.Scale()), size=alt.Size("rand", legend=None, scale=alt.Scale(range=[1, 150])), - )) + ) +)