Taucharts is distributed as an npm package and a CDN bundle. You can install it into a Node.js module build, load it directly in a browser from a CDN, or pull it in via Bower for legacy front-end workflows. This page covers all three methods along with TypeScript setup and D3 compatibility requirements.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.
Package managers
dist/taucharts.js as declared in package.json. The minified production build — including all bundled plugins — is at dist/taucharts.min.js and dist/taucharts.min.css.
CDN
Load Taucharts directly in a browser without a build step. Include D3 first, then Taucharts, and link the stylesheet in<head>.
Module and ES import
- Browser
- Node.js module
When bundling with webpack, Rollup, or a similar tool, import the default export and the stylesheet:You can also use named exports for To load only a specific plugin without the full bundle, import it from its own path:
Chart, Plot, api, and version directly:TypeScript setup
Taucharts ships type declarations attypes/index.d.ts, referenced via the types field in package.json. No additional @types package is needed.
types/index.d.ts are:
| Type | Description |
|---|---|
ChartSpec | The full chart configuration object passed to new Chart() |
ChartGuide | Axis and visual guide settings (x, y, padding, interpolate, etc.) |
ChartSettings | Global rendering and layout settings |
PluginObject | Plugin interface with optional init, destroy, and onRender hooks |
Plot | Base class with renderTo(), refresh(), resize(), updateConfig(), getSVG() |
Chart | Extends Plot; the primary class for creating charts |
D3 version compatibility
Taucharts 2 (the current major version,
taucharts@2) is compatible with D3 v4 and D3 v5. Use taucharts@1 if your project depends on D3 v3 or earlier.d3-selection, d3-scale, d3-shape) at version ranges compatible with D3 v4/v5. You do not need to install a top-level d3 package alongside Taucharts.
When loading from a CDN, supply a D3 v4 or v5 bundle before the Taucharts script, as shown in the CDN section above.