ECharts.Theme (echarts v0.1.1)

Copy Markdown View Source

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

A dark theme map with a near-black background and a cyan-led palette.

Returns the palette used by dark/0.

A light theme map with a slate background and a blue-led palette.

Returns the palette used by light/0.

Functions

dark()

@spec dark() :: map()

A dark theme map with a near-black background and a cyan-led palette.

dark_palette()

@spec dark_palette() :: [String.t()]

Returns the palette used by dark/0.

light()

@spec light() :: map()

A light theme map with a slate background and a blue-led palette.

light_palette()

@spec light_palette() :: [String.t()]

Returns the palette used by light/0.