Skip to content

Basic chart types

The nine built-in Chart.js types. Every one of these works out of the box with type: "…" — no plugins required. Switch between the rendered PNG and the source JSON with the tabs on each example.

Bar chart

bar-chart

Horizontal bar chart

Same type: "bar" with options.indexAxis: "y".

horizontal-bar-chart

Line chart

Multi-dataset with tension: 0.3 for smooth lines.

line-chart

Pie chart

pie-chart

Doughnut chart

Identical to pie + chart.type: "doughnut".

doughnut-chart

Radar chart

radar-chart

Polar area chart

polar-area-chart

Scatter plot

Datasets take {x,y} objects rather than values.

scatter-plot

Bubble chart

Scatter but with radius (r) per point.

bubble-chart

Next

Edit this pageLast updated: