talira

Chart.js

Simple yet flexible JavaScript charting for the web

open sourceMITfree

Chart.js is an open source JavaScript library for drawing responsive, animated charts on an HTML5 canvas. It has eight built-in chart types that you can mix on one canvas, time, logarithmic and custom axes, and plugins for annotations, zoom and more, with community-maintained chart types beyond the built-in ones. It's tree-shakable, so you register only the components you use, and handles large datasets with its decimation plugin. It's maintained by its community under the MIT licence.

Problems it solves

  • add a line or bar chart to my web page without much code
  • show responsive animated charts in my JavaScript app
  • plot a time series in the browser

Features

  • eight animated chart types, mixable on one canvas
  • responsive canvas rendering
  • time, logarithmic and custom axes
  • plugins for annotations, zoom and more
  • tree-shaking to register only the parts you use
  • decimation for large datasets

Alternatives

The same job

These do what Chart.js does.

  1. D3 The JavaScript library for bespoke data visualization
  2. Apache ECharts Open source JavaScript library for interactive charts and visualization
  3. Lightweight Charts Tiny, fast HTML5 canvas library for interactive financial charts
  4. Chartist Simple, responsive JavaScript charts drawn in SVG and styled with CSS, with no dependencies

Compare Chart.js with the top 3