Draws a bar, line, pie or doughnut chart.
The shape of data follows type: cartesian charts take labelled datasets, pie and doughnut take a flat list of slices.
data
type
A chart, drawn from data rather than from child nodes.
The chart minus its options, which are widened so they survive the worker boundary.
Chart({ type: 'bar', width: 480, height: 240, data: { labels: ['Mon', 'Tue', 'Wed'], datasets: [{ label: 'Renders', data: [12, 19, 7], color: '#38bdf8' }], }, options: { showValues: true, showLegend: true },}) Copy
Chart({ type: 'bar', width: 480, height: 240, data: { labels: ['Mon', 'Tue', 'Wed'], datasets: [{ label: 'Renders', data: [12, 19, 7], color: '#38bdf8' }], }, options: { showValues: true, showLegend: true },})
Draws a bar, line, pie or doughnut chart.
The shape of
datafollowstype: cartesian charts take labelled datasets, pie and doughnut take a flat list of slices.