To support different styles, we could create a set of plot themes (e.g., dark, light, etc.). As a comparison, the ggthemes package has default styles to emulate popular styles like the Wallstreet Journal, FiveThirtyEight, etc.
Perhaps a simple approach would be to define a set of styles in Plot.themes that could be set as the style property in a Plot:
Plot.plot({
style: Plot.themes.dark
})
Where Plot.themes.dark has a set of key/value pairs describing the style: {background: "black", color: "white",...}
To support different styles, we could create a set of plot themes (e.g.,
dark,light, etc.). As a comparison, theggthemespackage has default styles to emulate popular styles like the Wallstreet Journal, FiveThirtyEight, etc.Perhaps a simple approach would be to define a set of styles in
Plot.themesthat could be set as thestyleproperty in a Plot:Where
Plot.themes.darkhas a set of key/value pairs describing the style:{background: "black", color: "white",...}