Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bar Charts

Basic bar chart

Multiple series

Options

FieldTypeDescription
titlestringChart title (optional)
labelsarrayX-axis labels
datasetsarrayOne or more data series
datasets[].labelstringSeries name
datasets[].dataarrayNumeric values
datasets[].colorstringCSS color (optional, auto-assigned if omitted)
axes.xstringX-axis label (optional)
axes.ystringY-axis label (optional)
heightnumberChart height in pixels (default: 350)