A free, open-source JavaScript library for binding data to SVG, Canvas and HTML to build custom, data-driven visualizations.
chartjs/Chart.js
Simple yet flexible JavaScript charting library that renders HTML5 charts on the canvas element.
Open-source alternative to:Google Charts
Highcharts
- Stars
- 67,752
- Forks
- 11,949
- Open issues
- 613
- Last commit
- 3 hours ago
What is it?
Chart.js is a JavaScript charting library that draws charts with the HTML5 canvas element. You pass it a configuration object describing the chart type, data and options, and it renders an interactive chart in the browser.
The library is aimed at designers and developers who need common chart types without building drawing code from scratch. Its documentation covers line, bar and other chart types, along with configurable axes, data structures and a developer section for building extensions.
Chart.js is distributed under the MIT license. The documentation links point to version 4 of the library, and older versions are available through versioned doc URLs.
Key features
- 01Renders charts on the HTML5 canvas element in the browser.
- 02Supports multiple chart types configured through a single options object.
- 03Provides configurable axes, scales and data structures.
- 04Includes documented extension points for building plugins.
Use cases
- Adding interactive line or bar charts to a web dashboard.
- Visualizing metrics or analytics inside a frontend application.
- Embedding simple charts in content sites without heavy dependencies.
Quick start
- 1
Read the installation guide in the documentation
- 2
Browse the documentation to get started
In collections
Topics
FAQ
- What is Chart.js?
- Simple yet flexible JavaScript charting library that renders HTML5 charts on the canvas element. Chart.js is a JavaScript charting library that draws charts with the HTML5 canvas element. You pass it a configuration object describing the chart type, data and options, and it renders an interactive chart in the browser.
- Is Chart.js free to use? What license does it have?
- Chart.js is open source under the MIT license. Check the license terms before using it in commercial products.
- Is Chart.js still maintained?
- Actively maintained. The last commit to Chart.js was on Oct 22, 2026.
- What can I use Chart.js for?
- Adding interactive line or bar charts to a web dashboard. Visualizing metrics or analytics inside a frontend application. Embedding simple charts in content sites without heavy dependencies.
- How do I install Chart.js?
- Read the installation guide in the documentation Browse the documentation to get started
- Where can I get Chart.js?
- The source code and installation instructions are on GitHub: https://github.com/chartjs/Chart.js
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A JavaScript 3D library that makes it easier to build and render 3D scenes in the browser with WebGL and WebGPU.
A React chart library built on D3, offering declarative components for composing SVG charts in React apps.
Helm is the package manager for Kubernetes, installing and managing apps packaged as reusable Charts.
A high-level JSON grammar for declarative interactive charts that compiles to complete Vega specifications.
A declarative JSON grammar for building interactive data visualizations that render to HTML5 Canvas or SVG.