-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Vega-Lite features #643
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
Vega-Lite features #643
Conversation
largely based on the existing Vega element, VegaLite can take a vega-lite string or an Altair chart object to embed visualizations this uses the older, more stable vega-lite 1.x API
name='vega') | ||
|
||
figure.header.add_child( | ||
JavascriptLink('https://cdnjs.cloudflare.com/ajax/libs/vega-lite/1.3.1/vega-lite.min.js'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E501 line too long (102 > 100 characters)
name='vega-lite') | ||
|
||
figure.header.add_child( | ||
JavascriptLink('https://cdnjs.cloudflare.com/ajax/libs/vega-embed/2.2.0/vega-embed.min.js'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E501 line too long (104 > 100 characters)
change `format` to `fmt` in example and docstring
needed for VegaLite example
@njwilson23 this is awesome! I'm attending a conference at the moment but I promise a careful review as soon as possible. (This must be in the next release!) |
@njwilson23 sorry for the delay in merging this and thanks for the PR! I am inclined to remove the |
@ocefpaf Ah no worries - everyone gets busy. |
Vega-Lite features
I've implemented a
VegaLite
element (cf. #488), and added a couple of examples reproducing the Vega versions.This uses v1 of Vega-Lite, although it looks like v2 may be available soon.
I couldn't figure out how the Vega code was tested - if you could point me to the right place to look, I can try to create matching tests for the Vega-Lite.