Skip to content

Variable: bar ​

ts
const bar: ExpressFunction<BarOptions>;

A bar chart (px.bar): one bar trace per group of color / pattern values, per facet and per frame, stacked (barmode: 'relative') by default. A numeric color is a colorscale instead.

Example ​

ts
const figure = bar(rows, { x: 'day', y: 'total', color: 'sex', barmode: 'group' });

Released under the MIT License.