Taucharts is built around a data-first philosophy: you pass a plain array of objects and the library figures out what kind of data each field contains. For most charts this automatic detection works without any additional configuration, but you can override it explicitly when you need precise control over how a field is interpreted or displayed.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TargetProcess/tauCharts/llms.txt
Use this file to discover all available pages before exploring further.
The data property
The data property accepts an array of plain JavaScript objects. Each object represents one data point, and its keys become the available fields for axes, colors, sizes, and labels.
Array of plain objects. Each object is one data point. All keys in the objects become available as dimension names.
Mapping fields to visual channels
These properties onChartSpec control which data fields are mapped to which visual channels.
Field name(s) for the horizontal axis. Pass an array of two strings to create a faceted (small multiples) layout on the x axis.
Field name(s) for the vertical axis. Pass an array of two strings to create a faceted layout on the y axis.
Field name whose distinct values map to different colors. The color scale is ordinal for category dimensions and continuous for measure dimensions.
Field name whose numeric values control the size of points or bubbles.
Field name whose values are rendered as text labels on chart elements.
Field name used to split a single line or area into separate series without mapping them to color.
Automatic dimension type detection
Whendimensions is omitted, Taucharts inspects the first non-null value of each field across the entire dataset and assigns a type and scale automatically.
| Value type | Detected dimension type | Default scale |
|---|---|---|
Date object | measure | time |
| Plain object | order | ordinal |
| Finite number | measure | linear |
| Anything else (string, boolean, …) | category | ordinal |
category / ordinal.
Explicit dimensions configuration
Override auto-detection for any field by providing a dimensions map in the chart spec.
A map from field name to dimension descriptor. Only include fields you want to override.
Dimension types
| Type | Meaning | Default scale |
|---|---|---|
category | Discrete labels with no inherent order (team names, statuses, …). | ordinal |
measure | Continuous or date/time values (counts, durations, timestamps). | linear (numbers), time (dates) |
order | Discrete labels with a defined custom order (severity levels, sprint names). | ordinal |
Null value handling
By default Taucharts removes rows where ameasure-type or period-scale field is null before rendering. This prevents null values from distorting continuous axes. The behavior is controlled by the excludeNull setting (default true).
Setting
excludeNull: false applies globally. If you need selective null handling, pre-filter your data before passing it to the chart.Updating data at runtime
Use thesetData() method to replace the chart’s dataset without recreating the chart instance. This is useful for streaming updates or user-driven filtering.