Skip to content

2 Free Bootstrap Chart Templates

Bar, line, donut, gauge and heatmap charts built with HTML, CSS and SVG.

2 components

Pie Chart with Percentage Legend – free Bootstrap 6 chart template

Pie Chart with Percentage Legend

Budget pie chart with a percentage legend table: SVG slices drawn from a data array, and clicking a slice or category row pulls the slice out.

Bar Chart with Axis and Tooltips – free Pure CSS chart template

Bar Chart with Axis and Tooltips

Monthly sales bar chart with a labelled value axis, gridlines, tooltips on hover, focus and tap, and a this year / last year toggle that animates the bars.

What is an HTML and CSS chart?

A chart turns numbers into shapes people can compare at a glance: bars for amounts, lines for trends over time, donuts and pies for shares of a whole, gauges for progress toward a target and heatmaps for activity. These charts are built with plain HTML, CSS and inline SVG, so they load instantly and need no charting library.

When to use these charts

Use them on dashboards, reports, pricing and landing pages, KPI tiles and admin panels where you show a handful of series and want full control over the look. For thousands of points or live streaming data a dedicated charting library is a better fit.

Best practices

  • Start the value axis at zero for bars and label the units.
  • Use colour and a second cue, such as a pattern or label, so the chart works for colour-blind readers.
  • Add a text summary or an accessible table with the same numbers for screen readers.
  • Keep tooltips reachable by keyboard and touch, not only by mouse hover.
  • Check that labels stay readable at phone width.

Framework versions

Each chart is available in one of Bootstrap 6, Bootstrap 5, Tailwind CSS or pure CSS. Open the live preview to try it, then copy the HTML, CSS and JavaScript or download the files. Colours, fonts and spacing are defined once at the top of the stylesheet so you can match your brand quickly.