Description
Chart.js is an open-source JavaScript library for drawing charts in the browser. You give it your data and a chart type in a configuration object, and it draws the chart on an HTML5 canvas, so it works in any web page or web app without a server. It offers eight chart types and lets you mix bar and line datasets on one chart. The axes can be linear, logarithmic, time-based or fully custom, which helps with sparse or unevenly spaced data. Every chart animates when its data or colours change, and the transitions can be configured for each element. Charts redraw when the window is resized. Recent versions let you register only the parts you use, which keeps the JavaScript bundle small. The project is maintained by its community, and the code and contributions are on GitHub. It is aimed at designers and developers who want clear charts without a large dependency.…
Highlights
- Eight chart types drawn on an HTML5 canvas
- Mix bar and line datasets in one chart
- Linear, logarithmic, time and custom axes
- Configurable animated transitions
- Responsive charts that redraw on resize
- Tree-shaking to register only the parts you use
Ratings & Reviews
No ratings yet
Be the first to rate Chart.js.
People also visit

FusionCharts
Create stunning, customizable charts and integrate with popular frameworks
Chart.js FAQ
What is Chart.js?
A JavaScript library for drawing charts. You describe a chart with a configuration object holding your data, and it renders the chart on a canvas element.
Which chart types does it offer?
The site says it offers eight chart types, each animated and customisable, and that you can mix bar and line charts in one view.
Is Chart.js free?
Yes. It is an open-source project maintained by its community, and its source code is public on GitHub.
Does it work in older browsers?
It draws on the HTML5 canvas, and the site says rendering performs well across modern browsers, including IE11 and later.
Can I keep the bundle small?
Yes. Since version 4.0 you can register only the chart components you need, which reduces the amount of JavaScript you ship.
What are the best Chart.js alternatives?
Popular alternatives to Chart.js include FusionCharts, JsDiagram and AnyChart. See all Chart.js alternatives












