Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update example application

davidmezzettide41e01e7adf
diff --git a/examples/baseball.py b/examples/baseball.py
index 40cb1401..6fcc7b4f 100644
--- a/examples/baseball.py
+++ b/examples/baseball.py
@@ -517,10 +517,7 @@ class Application:
chart = (
alt.Chart(metrics)
.mark_line(interpolate="monotone", point=True, strokeWidth=2.5, opacity=0.75)
- .encode(
- x=alt.X("yearID", title="").scale(padding=0),
- y=alt.Y(metric).scale(zero=False, padding=0),
- )
+ .encode(x=alt.X("yearID", title=""), y=alt.Y(metric, scale=alt.Scale(zero=False)))
)
# Create metric median rule line