Skip to main content

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.

Bar charts represent categorical data as rectangular bars whose length is proportional to the value of a measure. Taucharts provides four bar variants: vertical (bar), horizontal (horizontal-bar), vertically stacked (stacked-bar), and horizontally stacked (horizontal-stacked-bar). The stacked variants use the color field to define the segments within each bar.

Variants

Vertical bars, one bar per category on the x-axis.
var chart = new Taucharts.Chart({
    type : 'bar',
    x    : 'team',
    y    : 'effort',
    color: 'priority',
    data : [
        { team: 'Alpha', effort: 40, priority: 'high' },
        { team: 'Alpha', effort: 25, priority: 'low'  },
        { team: 'Beta',  effort: 55, priority: 'high' },
        { team: 'Beta',  effort: 10, priority: 'low'  }
    ]
});

chart.renderTo('#chart');

Configuration

type
string
required
One of "bar", "horizontal-bar", "stacked-bar", or "horizontal-stacked-bar".
x
string | string[]
required
The data field mapped to the horizontal axis. For stacked variants, accepts an array to create facets.
y
string | string[]
required
The data field mapped to the vertical axis. For stacked variants, accepts an array to create facets.
color
string
A data field used to color-encode bars or, for stacked variants, to define stack segments. Each unique value becomes a distinct color segment.
data
object[]
required
Array of plain objects. Each object represents one bar or one stack segment.
guide
object
Visual configuration for axes and padding.
plugins
object[]
Array of plugin instances. The legend plugin is commonly used with bar charts that encode color.
For stacked variants, the color field is required to define which segments belong together. Without it, all bars render as a single segment.

Build docs developers (and LLMs) love