Skip to main content
Themes assign categorical color by series or datum index. Compose with chartPalette to reach a hue outside that order, selecting from the Anvil2 list rather than authoring hex values. Select hues by index into the array. The array holds the Anvil2 order, so the choice is which entry to use rather than which hex value to write:
Avoid hard-coding Anvil2 hex values in a chart option. Resolving through chartPalette keeps the light and dark appearances correct as tokens change.
Last modified on August 20, 2026