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.
ChartSpec is the configuration object you pass to new Taucharts.Chart() (or new Taucharts.Plot()). It describes what data to render, which chart type to use, how fields map to visual channels, and how the chart should behave. Every field except type and data is optional, but in practice x, y, and data are nearly always required.
Top-level fields
The chart type to render. Must be one of:
'bar''horizontal-bar''horizontal-stacked-bar''line''map''parallel''scatterplot''stacked-area''stacked-bar'
Array of plain objects that form the dataset. Each object is one data point (row). All field names referenced by
x, y, color, size, label, and split must appear as properties on these objects.Field name(s) for the horizontal axis. Passing a single string maps that field to the x-axis. Passing an array of two strings creates a faceted (small-multiples) layout along the x dimension: the first string is the outer facet dimension, the second is the inner axis field.
Field name(s) for the vertical axis. Follows the same single-field or faceted-array semantics as
x.Field name used for color encoding. Taucharts automatically assigns colors from the default brewer. Override the color mapping with
guide.color.brewer.Field name used for size encoding. Applicable to
scatterplot and other element types that support variable point size.Field name whose value is displayed as a text label on each chart element.
Field name used to split a single line or area series into multiple independent series. Each unique value in this field produces a separate visual trace.
Optional unique identifier for the chart instance. Not used by the rendering engine but can be helpful for plugin authors or test selectors.
Visual configuration for axes, padding, colors, grid lines, and interpolation. Pass a single object for flat charts, or an array of objects for faceted layouts where each element configures one facet level. See ChartGuide below.
Rendering and layout settings that override the global defaults. See ChartSettings below.
Explicit dimension type declarations. When omitted Taucharts auto-detects dimension types from the data. Use this field to override the inferred types.
Array of plugin instances to enable. Each plugin is a
PluginObject — a plain object with optional init, destroy, and onRender lifecycle hooks. Obtain built-in plugins via Taucharts.api.plugins.get(name).ChartGuide
ChartGuide controls the visual appearance of axes, padding, grid lines, and element drawing. All fields are optional.
Configuration for the x-axis.
Configuration for the y-axis. Accepts the same fields as
guide.x.Inner padding around the chart canvas in pixels.
Color channel configuration.
Controls when anchor dots are shown on line and area charts.
'always' shows them permanently, 'hover' shows them only on pointer interaction, 'never' hides them.guide.interpolate
'linear' | 'smooth' | 'smooth-keep-extremum' | 'step' | 'step-before' | 'step-after'
Curve interpolation method for line and area charts. Defaults to
'linear'.'linear'— straight segments between points'smooth'— cubic bezier curve, may overshoot data values'smooth-keep-extremum'— cubic bezier that preserves local extrema'step'— horizontal then vertical step'step-before'— vertical then horizontal step'step-after'— horizontal then vertical step (step occurs after the point)
When
true, splits the series by the split field even when no color field is set.Which grid lines to render.
'x' draws vertical grid lines at each x tick, 'y' draws horizontal lines at each y tick, 'xy' draws both.ChartSettings
ChartSettings controls rendering behaviour and axis layout. All fields are optional; unset fields fall back to the values in Taucharts.api.globalSettings.
Duration of entry/exit animations in milliseconds. Set to
0 to disable animations.Maximum time in milliseconds allowed for a single render pass before the timeout warning is shown. Set to
Infinity to disable the timeout.When
true the rendering pipeline yields to the browser event loop between chunks, preventing UI freezes on large datasets.When
asyncRendering is true, the number of milliseconds between yielding control back to the browser.When
true, pointer event handlers run synchronously instead of being deferred with requestAnimationFrame.When
true, rendering errors are caught and surfaced as a 'renderingerror' event instead of propagating as uncaught exceptions.Default color palette used for measure-type color dimensions. Overrides the built-in viridis-derived palette.
Default CSS class sequence used for category-type color dimensions (
color20-1 through color20-20 by default).Custom logging function. Receives a message string and a severity level. Defaults to
console[type.toLowerCase()].String inserted between outer and inner facet label values in faceted chart titles.
When
true, data rows that have null or undefined values in any dimension field are silently excluded before rendering.settings.fitModel
'none' | 'normal' | 'entire-view' | 'minimal' | 'fit-width' | 'fit-height'
default:"'normal'"
Controls how the chart fills its container when there is excess or insufficient space.
Layout algorithm.
'EXTRACT' pulls axes out of the plot area into dedicated rows/columns. 'NONE' leaves axes embedded inside the plot.When
true, automatically adjusts the plot aspect ratio to fit the container.Ordered list of spec engine breakpoints. Each entry defines the maximum container size at which a named engine is active. Defaults to
COMPACT below 600×400 px and AUTO above.When
true, all time-based scales and tick periods use UTC instead of local time.Named default format strings applied to dimensions when no explicit
tickFormat is set. Keys are dimension type strings such as 'measure' or 'measure:time'.Minimum chart width in pixels. The chart will not render below this width.
Minimum chart height in pixels.
Minimum width of an individual facet panel in pixels.
Minimum height of an individual facet panel in pixels.
Maximum width in pixels of an x-axis tick label before it is truncated or wrapped.
Maximum width in pixels of a y-axis tick label before truncation or wrapping.
Full example
When
dimensions is omitted Taucharts infers types automatically from the data: JavaScript Date objects become measure / time, numbers become measure / linear, and strings become category / ordinal. Explicit declarations are only needed when the inference produces unexpected results or when you want an 'order' type with a custom sort.