Skip to content

FieldType

FieldType = "quantitative" | "categorical" | "temporal"

Defined in: packages/pixi-charts/src/spec/ChartSpec.ts:15

How a data field should be interpreted by the chart.

  • 'quantitative' — numeric values (counts, measurements, currency). Mapped with a linear scale.
  • 'categorical' — discrete strings (categories, group names). Mapped with a band scale on positional channels; with a categorical palette on the color channel.
  • 'temporal' — date/time values. Parsed to Date and mapped with a time scale.