Skip to content

Feature: Added Support For Vega-Lite Based Components #668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions examples/iris/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
chat,
# fastplotlib,
get_df,
mosaic,
plotly,
sidebar,
table,
Expand Down Expand Up @@ -44,6 +45,26 @@
fig1.update_layout(template="plotly_white")
plotly(fig1)


text("# Mosaic Example")

mosaic(
label="Iris Mosaic Plot",
spec={
"$schema": "https://vega.github.io/schema/vega-lite/v6.json",
"description": "A scatterplot showing horsepower and miles per gallons for various cars.",
"data": {
"url": "https://raw.githubusercontent.com/vega/vega-datasets/refs/heads/main/data/cars.json"
},
"mark": "point",
"encoding": {
"x": {"field": "Horsepower", "type": "quantitative"},
"y": {"field": "Miles_per_Gallon", "type": "quantitative"},
},
},
)


# 2. Histogram of Sepal Length
text(
"## Distribution of Sepal Length \n This histogram displays the distribution of sepal lengths across the three iris species. Setosa tends to have shorter sepals, while Virginica generally has longer sepals."
Expand Down
Loading