Libraries for drawing standard charts (line, bar, area, pie, scatter and more) in the browser. They differ mostly in rendering technology, in how charts are configured, and in licensing. SVG output is easy to style, inspect and make accessible; Canvas and WebGL renderers scale to far more data points.

Start with data size and interactivity: SVG libraries are comfortable up to a few thousand marks, while Canvas-based libraries such as Chart.js and Apache ECharts handle much larger series. Then compare configuration style (declarative options objects versus code), framework wrappers, accessibility support and whether the license fits your product.

By GitHub stars, the most popular JavaScript charting libraries here are Chart.js (67.7K stars), Apache ECharts (67.4K stars), and Plotly.js (18.4K stars). 13 of 29 had commits in the last 90 days.

JavaScript charting libraries, ranked by GitHub stars
1 Chart.js

Charts with the canvas tag.

67.7K 21 MIT
2 Apache ECharts

Highly customizable and interactive charts ready for big datasets.

67.4K 266 Apache-2.0
3 Plotly.js

Powerful declarative library with support for 20 chart types.

18.4K 1,549 MIT
4 Lightweight Charts

Performant HTML5 canvas financial charts, from TradingView.

17.5K 329 Apache-2.0
5 ApexCharts

Modern & Interactive SVG Charts.

15.2K 832 Other
6 Frappe Charts Inactive

Simple, responsive SVG charts with zero dependencies.

15.1K 0 MIT
7 Chartist.js

Responsive charts with great browser compatibility.

13.4K 1 MIT
8 G2

An interactive and responsive charting library based on the grammar of graphics, maintained by Alibaba.

12.6K 88 MIT
9 uPlot

Small, fast canvas-based charts for time series, lines, areas, OHLC and bars.

10.5K 118 MIT
10 C3.js

D3-based reusable chart library.

9.4K 18 MIT
11 dc.js Inactive

Multi-dimensional charting built to work natively with crossfilter.

7.4K 0 Apache-2.0
12 MetricsGraphics.js Inactive

Optimized for time-series data.

7.4K 0 MPL-2.0
13 NVD3 Inactive

A reusable charting library written in d3.js.

7.2K 0 Apache-2.0
14 roughViz Inactive

Sketchy, hand-drawn style charts for the browser, based on Rough.js.

7.2K 0 MIT
15 Charts.css Inactive

CSS framework that styles HTML tables as charts.

6.6K 0 MIT
16 Frappe Gantt

Simple, interactive SVG Gantt chart library.

6.1K 38 MIT
17 billboard.js

Reusable D3.js-based chart library with SVG and Canvas rendering, maintained by NAVER.

6K 138 MIT
18 Observable Plot

A JavaScript library for exploratory data visualization.

5.4K 38 ISC
19 TOAST UI Chart Archived

Complete library with support for legacy browsers.

5.4K 0 MIT
20 Epoch Inactive

Perfect to create real-time charts.

4.9K 0 MIT
21 Dygraphs

Interactive line charts library that works with huge datasets.

3.2K 54 MIT
22 Unovis

Modular data visualization framework for React, Angular, Svelte, Vue and vanilla TypeScript, by F5.

2.9K 590 Apache-2.0
23 TechanJS Inactive

Stock and financial charts.

2.4K 0 MIT
24 Vizzu

Library for animated data visualizations and data stories.

2K 21 Apache-2.0
25 GraphicsJS Inactive

Lightweight JS graphics library with intuitive API, based on SVG/VML.

995 0 BSD-3-Clause
26 dxcharts-lite

Flexible financial charting library based on HTML5 canvas.

101 3,699 MPL-2.0
27 lit-line Inactive

SVG Line Chart Web Component - light, fast, interactive & fully responsive.

22 0 MIT
28 Glyph

Deterministic chart library that renders the same JSON spec to identical SVG on every platform, with DuckDB inside and an MCP server for AI agents.

3 258 Apache-2.0
29 Google Charts

Interactive charts for browsers and mobile devices.

– – – –

Head-to-head comparisons

Related topics

Related categories

Frequently asked questions

What is the most popular JavaScript charting library?

By GitHub stars, Chart.js is the most popular, with 67.7K stars, followed by Apache ECharts (67.4K) and Plotly.js (18.4K).

Which JavaScript charting libraries are actively maintained?

17 of the 29 tools listed had commits in the last 12 months, including Chart.js, Apache ECharts, Plotly.js, Lightweight Charts, and ApexCharts. Each tool page shows monthly commit activity.

Are these JavaScript charting libraries free and open source?

27 of the 29 tools listed use an OSI-approved open-source license; the others are source-available, free to use, or use a custom license, so check each tool page. The most common license here is MIT.

Missing a tool? Add it with a one-line pull request to the README.