Skip to content

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

Merged
merged 5 commits into from
Aug 22, 2017
Merged

Conversation

njwilson23
Copy link
Contributor

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.

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'),

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'),

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
@ocefpaf
Copy link
Member

ocefpaf commented Jul 13, 2017

@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!)

@ocefpaf ocefpaf merged commit b87d663 into python-visualization:master Aug 22, 2017
@ocefpaf
Copy link
Member

ocefpaf commented Aug 22, 2017

@njwilson23 sorry for the delay in merging this and thanks for the PR!

I am inclined to remove the vega/vincent support in my next PR and use this as default.

@njwilson23
Copy link
Contributor Author

@ocefpaf Ah no worries - everyone gets busy.

@ocefpaf ocefpaf mentioned this pull request Aug 23, 2017
sanga pushed a commit to sanga/folium that referenced this pull request Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants