Skip to main content
Everything beyond the data-to-ink mapping — titles, axes, legend, appearance, layout — is configuration. You add it by piping a config(...) part into the spec.

How config composes

config is just another spec part, so it follows the same pipe rules as the rest — with one twist: config deep-merges. Piping several config(...) parts combines them rather than replacing, so you can layer a shared base with per-chart overrides:
Anything you don’t set keeps its resolved default.

Sections

Data labels sit slightly apart — they’re a per-layer geom option rather than a config section, because labels attach to a specific observation.