Ready-made ECharts theme maps.
An ECharts theme is a map of component styles. The maps below match the palettes used by the bundled examples and work in every integration:
chart = ECharts.new(option, theme: ECharts.Theme.dark())For the two built-in presets you can also pass theme: :dark (the ECharts
dark theme) or theme: :light (the default palette). A theme map is
useful when you want a specific background and palette that follow your
application instead of ECharts' built-ins.
Summary
Functions
@spec dark() :: map()
A dark theme map with a near-black background and a cyan-led palette.
@spec dark_palette() :: [String.t()]
Returns the palette used by dark/0.
@spec light() :: map()
A light theme map with a slate background and a blue-led palette.
@spec light_palette() :: [String.t()]
Returns the palette used by light/0.