Skip to content
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

ENH: support vega-themes #1539

Merged
merged 1 commit into from
May 30, 2019
Merged

ENH: support vega-themes #1539

merged 1 commit into from
May 30, 2019

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented May 30, 2019

This PR adds support for vega themes. For example:

import altair as alt
alt.themes.enable('dark')

from vega_datasets import data
cars = data.cars()

alt.Chart(cars).mark_point().encode(
    x='Horsepower',
    y='Miles_per_Gallon',
    color='Origin',
).interactive()

visualization - 2019-05-29T205206 398

This requires your frontend to use the most recent release of vega-embed.

Fixes #781

@jakevdp jakevdp merged commit 56555e8 into vega:master May 30, 2019
@jakevdp jakevdp deleted the vega-theme branch May 30, 2019 03:59
@domoritz
Copy link
Member

🎉 Thank you @jakevdp for adding this.

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.

Support built-in vega themes
2 participants