question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support built-in vega themes

See original GitHub issue

See vega-themes. Themes should be supported via the current theme infrastructure, maybe something like this:

alt.themes.enable('vega.themes.dark')

We’ll have to think about how to best populate the list of available themes, and how to make this work cleanly with user-specified themes from within Altair.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
domoritzcommented, Apr 29, 2018

I made a little demo at https://beta.observablehq.com/@domoritz/vega-themes-demo. The themes are definitely not tuned yet but having the infrastructure in place will be useful in the future and I hope that we get people to help with improving the themes.

1reaction
domoritzcommented, May 16, 2019

Update: Vega-Embed now supports userMeta.embedOptions.

What is the rational for that? Wouldn’t it be much easier if the theme choice is just part of the spec properly?

Themes are still developing and have not reached the maturity of Vega and Vega-Lite. You can always bake a theme into the spec as a config. Right now, Vega and Vega-Lite have no dependency on Vega-Themes and I think that’s a good thing at this point.

I think I would prefer something less obscure, why not go with @jakevdp’s suggestion of “config”: “theme”?

usermeta is already a supported property in Vega and Vega-Lite so I put it in there. "config": "theme" would require updates to Vega and Vega-Lite and also is less flexible compared to supporting all embed options.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vega-themes - npm
A Vega theme is a configuration object with default settings for a variety of visual properties such as colors, typefaces, line widths and ......
Read more >
Config | Vega
A config object defines default visual values to set a visualization's theme. The Vega parser accepts a JSON configuration file that defines default...
Read more >
Vega Pro - One Page Multipurpose WordPress Theme
Beautifully designed WordPress theme loaded with options perfect for small businesses and blogs, that also doubles as a one page website if needed....
Read more >
Vega - Creative HTML5 Responsive Website Template
Introducing Vega, a modern fully responsive UI kit template for design studios and creative agencies. With stylish dark look, different layout options, blog ......
Read more >
Vega | Photography WordPress by ThemeGoods - ThemeForest
Vega is a clean and minimalist Wordpress theme for photography, ... Built-in Shortcode Generator plugin; Custom Post Type support for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found