Charts Label

Names in the legend and tooltip come from the same series label field.

Pass a string for a fixed name, or a label_formatter when the wording should change by context (Legend, Tooltip, or pie Arc).

  • Short legend labels with longer tooltip descriptions (e.g. "Rev" vs "Revenue (USD)").
  • Pie arc labels that differ from legend text for space reasons.
  • Consistent naming across legend, tooltip, and export without duplicating series defs.
  • Set label on SeriesDef for a fixed name everywhere.
  • Set label_formatter with LabelLocation when text should vary by surface.
  • Configure arc_label on PieChart for slice-specific label modes.
Location-aware bar labels

Abbreviated legend entries with full tooltip names.

200k400k600kAmount (USD)Q1Q2Q3Q4Quarter
  • Rev
  • Cost
Pie arc labels

Formatted arc values on slices above the minimum angle threshold.

NorthSouthEastWest