-
Notifications
You must be signed in to change notification settings - Fork 86
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
Interactive (jsfiddle like) tutorial and the examples #106
Comments
@petervidos Could you please clarify the issue?
import micropip
await micropip.install("ipyvizzu")
from ipyvizzu import Chart, Data, Config
chart = Chart()
chart.scroll_into_view = False
data_cube = Data()
data_cube.add_dimension('Genres', [ 'Pop', 'Rock', 'Jazz', 'Metal'])
data_cube.add_dimension('Kinds', [ 'Hard', 'Smooth', 'Experimental' ])
data_cube.add_measure(
'Popularity',
[
[114, 96, 78, 52],
[56, 36, 174, 121],
[127, 83, 94, 58],
]
)
chart.animate(data_cube)
chart.animate(Config({
"channels": {
"y": {
"set": ["Popularity", "Kinds"]
},
"x": {
"set": "Genres"
},
"label": {
"attach": "Popularity"
}
},
"color": {
"attach": "Kinds"
},
"title": "Stack"
}))
chart.animate(Config({
"channels": {
"y": {
"attach": "Genres",
},
"x": {
"set": None
}
}
}))
snapshot1 = chart.store()
chart.animate(snapshot1)
chart.animate(Config({"title": "Aggregate element"}))
chart.animate(Config({
"channels": {
"y": {
"detach": "Genres",
},
}
}))
snapshot2 = chart.store() |
I think Peter would like to see something like the js fiddles for the JS library examples with a tryit link. |
schaumb
changed the title
Let's use Jupyter Lite for the tutorial and the examples
Interactive (jsfiddle like) tutorial and the examples
Jul 3, 2023
Naas could support this doc site feature |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://jupyterlite.github.io/demo/lab/index.html
https://blog.jupyter.org/jupyter-everywhere-f8151c2cc6e8
The text was updated successfully, but these errors were encountered: