Chart.js
JavaScript dashboard charts · Free
Draws interactive Canvas charts: line, bar, pie, scatter, and mixed charts. It suits dashboards, reports, and web application analytics.

What you can use for free
The MIT library is entirely free, including commercial use.
Paid features and costs
Data sources and chosen external plugins/services have separate terms.
Access and limitations
The MIT library is entirely free, including commercial use. Data sources and chosen external plugins/services have separate terms.
Use cases
- Show dashboard metrics and trends
- Build charts in plain JS, React, Vue, or Svelte
Example workflow
A possible workflow; this is not a report of hands-on testing.
Example workflow with Chart.js: Show dashboard metrics and trends.
Before you start
- A small dataset with units, a time period, and a source.
- The question the chart should answer, and a list of empty or missing values.
- A JavaScript or TypeScript project with HTML Canvas; select a compatible wrapper for React, Vue, or Svelte separately.
Steps
- For the task “Show dashboard metrics and trends”: choose a chart type for the question and prepare the data without mixing units.
- Add labels, a legend, and an explanation of the metric; connect updates to real data.
- Provide a written finding or a table alongside the chart, then test it on a narrow screen.
Check your result
- Values, order, and scale match the source data; missing values do not become invented zeros.
- The chart can be read without relying on color alone; a clear state is shown when data is absent.
Choosing Chart.js
Show dashboard metrics and trends
Choose this when
- Show dashboard metrics and trends
- Build charts in plain JS, React, Vue, or Svelte
Consider alternatives when
- When choosing for this topic, compare Chart.js with Bklit UI. A candidate to compare under the topic: Charts and data visualization. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Requirements
- A canvas on the page, chart data, and configuration; for a modular build, import the types and components you use.
Things to consider
- Costs and limits of free use: Data sources and chosen external plugins/services have separate terms.
- Terms of use: MIT.
- Canvas cannot be styled with ordinary CSS in the same way as SVG; add a description or data table for accessibility.
- Select framework wrappers and plugins separately.
Frequently asked questions
What can you use for free in Chart.js?
The MIT library is entirely free, including commercial use.
What additional costs might arise with Chart.js?
Data sources and chosen external plugins/services have separate terms.
What terms of use matter for Chart.js?
MIT.
Which environment can you use Chart.js in?
Tech stack: TypeScript, JavaScript, Canvas.
How do you get started with Chart.js?
For the task “Show dashboard metrics and trends”: choose a chart type for the question and prepare the data without mixing units. Add labels, a legend, and an explanation of the metric; connect updates to real data. Provide a written finding or a table alongside the chart, then test it on a narrow screen.
Why doesn't CSS change individual Chart.js chart elements?
The chart is drawn on an HTML canvas rather than built from SVG/DOM elements. Style individual elements through Chart.js options or plugins. Decimation is available for large datasets, and tree shaking lets you include only the library parts you need. Built-in TypeScript typings and integration options for various frameworks are available.
Related tasks and approaches
- Bklit UI
A candidate to compare under the topic: Charts and data visualization. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Tech stack
- TypeScript
- JavaScript
- Canvas
License
MIT.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsUsage details
Canvas cannot be styled with ordinary CSS like SVG; add a description or data table for accessibility. Choose framework wrappers and plugins separately.
Technologies and topics
- Charts
- Canvas
- JavaScript
- TypeScript