-
Notifications
You must be signed in to change notification settings - Fork 38
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
support of "application/vnd.vegalite.v2+json" #127
Comments
Currently the following does not work. I think it's an issue with IJulia and will post a fix soon.
Another use case is to use already constructed vega(lite) json specs directly. The |
Yeah, that seems more on the IJulia side of things. Here we just implement the various If you have your spec as a string already, you can turn it into a vega-lite spec with Btw., there is also full support for vega (not -lite) specs in this package, it is just all not exported and documented :) |
Fix queryverse/VegaLite.jl#127 After the fix the following works out of the box in new versions of jupyterlab, generating an interactive VegaLite visualization, without additional packages except Ijulia. ``` spec = raw""" { "data": { "values": [ {"a": "A","b": 28}, {"a": "B","b": 55}, {"a": "C","b": 43}, {"a": "D","b": 91}, {"a": "E","b": 81}, {"a": "F","b": 53}, {"a": "G","b": 19}, {"a": "H","b": 87}, {"a": "I","b": 52} ] }, "mark": "point", "encoding": { "x": {"field": "a", "type": "ordinal"}, "y": {"field": "b", "type": "quantitative"} } } """ display("application/vnd.vegalite.v2+json", spec) ```
(Hopefully) fixed. Thank you very much! |
The latest Jupyterlab comes with vegalite included, so I imagine that this should work:
So vegalite can work in jupyterlab even without (the excellent) VegaLite.jl.
But currently the above code snippet gives a "Javascript Error: undefined" error.
Any thought on how to fix this?
The text was updated successfully, but these errors were encountered: