ECharts

Apache ECharts draws a chart from one option object: its axes, series, tooltip and legend. EChart renders that option with your theme's colors, axes, tooltip and type scale, in light and dark mode, compact mode and inside a ThemeScope.

LLMs

Palette

Set palette to mono for shades of one color, accent for one color and grays, or multi for a color per series.

Emphasis

Set emphasis to strong to draw every series one step darker, for small marks or a busy page.

Base color

Pass color to build mono and accent from another color, here the emerald palette instead of the primary color.

Chart and legend

Wrap a card in ChartPalette so the chart and the legend beside it, which reads chartColors.series, use the same palette.