Name: vega-themes
Owner: Vega
Description: Themes for stylized Vega visualizations.
Created: 2016-10-03 23:32:46.0
Updated: 2017-11-15 04:25:40.0
Pushed: 2017-08-09 23:57:54.0
Homepage: null
Size: 7
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Themes for stylized Vega visualizations. For Vega version 3.0+.
A Vega theme is a configuration object with default settings for a variety of visual properties such as colors, typefaces, line widths and spacing. This module exports a set of named themes, which can be passed as input to the Vega parser:
runtime = vega.parse(vega_spec, vega.themes.quartz);
view = new vega.View(runtime);
Once instantiated, a visualization theme can not be changed. Instead, the
input specification must be re-parsed with a new theme and a new View
instance must be created.
Chart theme modeled after Microsoft Excel.
Chart theme modeled after ggplot2.
Chart theme modeled after Quartz.
Chart theme modeled after Vox.
To view and test different themes, follow these steps:
npm install
.python -m SimpleHTTPServer 8000
).http://localhost:8000/test/
).