Chart.js

Small, friendly canvas charts.

Chart.js is taught here in 3 lessons, running from Setup and configuration through to Updating, styling and interaction. Each lesson takes one topic, shows the working code, and links onward to the next, so the course can be read straight through in order.

TrackFront-end Development
Lessons3
LevelBeginner
Reading timeabout 39 minutes
PrerequisitesHelpful, but not required: ECharts

Lessons

  1. Setup and configurationCreate a chart from a canvas, understand the three-part config object, and register only the pieces you actually use.
  2. Chart types and datasetsThe eight built-in types, how datasets carry their own styling, mixed charts with two scales, and how data gets parsed.
  3. Updating, styling and interactionMutate the data then call update, control every visual with dataset and option properties, and keep the chart usable on small screens.

More in Front-end Development

HTML CSS JavaScript TypeScript HTML DOM AJAX JSON Tailwind CSS Bootstrap 5 Foundation Vue.js React Next.js Angular jQuery ECharts SVG Font Awesome

FAQ

How long does the Chart.js course take?
It has 3 lessons, about 39 minutes of reading. Expect roughly twice that if you type out and run every example.
Do I need prior experience for Chart.js?
Not strictly. It helps to have read ECharts first, because some lessons build on it, but every lesson explains its own assumptions.
What should I read after Chart.js?
Continue with SVG (3 lessons), the next course in Front-end Development.

Last refreshed 2026-09-18.