Taucharts is a data-focused JavaScript charting library built on D3. It gives you a declarative API for mapping data fields to visual properties — axes, color, size, and shape — and a plugin system for extending behaviour without modifying the core library. This guide walks you through creating and rendering a scatterplot from scratch.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.
Install Taucharts
Install the package with your preferred package manager.Taucharts bundles its D3 submodule dependencies, so you do not need to install D3 separately when using npm.
Import the CSS and JavaScript
Import the stylesheet and the library. The minified distribution bundles the core and all built-in plugins into a single file pair.If you need only the core without plugins, import from
dist/taucharts.js and load individual plugins from dist/plugins/ as needed. For example:Define your data and chart config
Create a chart by passing a configuration object to Every string you pass to
new Taucharts.Chart(). The type field selects the chart type, and x, y, color, and size each accept a field name from your data array.x, y, color, or size must match a key present in the data objects. Taucharts infers scale types automatically from the data values.Render to the DOM
Call You can also pass an explicit size as the second argument to override the container dimensions:
renderTo() with a CSS selector string or a DOM Element reference. Taucharts measures the container’s dimensions at render time, so give the element an explicit height before calling renderTo.Add plugins
Pass a The
plugins array to the chart config. Retrieve built-in plugins by name via Taucharts.api.plugins.get().legend plugin renders a color-keyed legend alongside the chart. The tooltip plugin shows a hover tooltip with field values for the focused data point. Both are included in taucharts.min.js.Taucharts 2 is compatible with D3 v4 and D3 v5. If you are working with an older version of D3 (v3 or earlier), use
taucharts@1 instead. The global object name also changed between major versions — v2 uses Taucharts (capital T), while v1 used tauCharts.Next steps
Scatterplot reference
Full configuration options for scatterplot charts, including size scales, color brewer overrides, and axis guide settings.
Plugins overview
Browse all built-in plugins — tooltip, legend, trendline, export, crosshair, and more.