Use this file to discover Exa products, pricing, evaluations, comparisons, use cases, agent interfaces, and technical documentation before exploring further.
JavaScript charting libraries turn arrays of data into line, bar, pie, and other charts in the browser. Each one draws either SVG, where every bar and point is its own element on the page, or canvas, where the whole chart is one bitmap. These libraries draw the charts in analytics dashboards, financial reports, and monitoring tools.
Popularity
recharts has the most installs, while d3 has the most GitHub stars.
Recharts builds charts in React out of separate components, drawn as SVG on top of d3. A chart component such as LineChart takes the data array. Its children, such as XAxis, Tooltip, CartesianGrid, and Line, each add one part of the chart. Each Line reads one field of every data item through its dataKey prop. Installing Recharts also installs react-is, which has to match the project's React version.
Downloads / mo
198.6M
Stars
27.7K
Last release
3.10.1, Jul 2026
License
MIT
Strengths
Charts as React components.Axes, tooltips, and series are JSX elements.
SVG output.Draws native SVG with few dependencies.
Limitations
React only.Charts are React components. Projects without React use a library such as Chart.js instead.
Matching react-is.The react-is package has to stay at the same version as the project's react package.
d3 is a toolbox of about thirty separate modules for drawing charts by hand, not a charting library with ready-made chart types. A stacked area chart, for example, combines a CSV parser, time and linear scales, a stack layout, an area generator that produces SVG path data, and axes. Selections create and change SVG or Canvas elements directly. When the data changes, the data join applies separate steps to elements that enter, update, or leave. For standard charts, the documentation points to Observable Plot, where a histogram takes one line instead of about fifty.
Downloads / mo
106.7M
Stars
113.9K
Last release
7.9.2, Nov 2026
License
ISC
Strengths
Any chart design.Scales, shapes, and layouts build fully custom visuals.
SVG or Canvas.Works directly with web standards, with no rendering layer of its own.
Updates changed elements.The data join changes only the elements that need it, with animated transitions.
Limitations
More code per chart.Even a basic chart takes a few dozen lines, because the toolbox has no chart abstraction.
No default look.Axes, layout, colors, and labels all come from the code each project writes.
renderAxis(data, options) {
const { chart, x, y, xAxis, yAxis, nice } = this
const xd = x.domain(d3.extent(data, d => d.time))
const yd = y.domain(d3.extent(data, d => d.value))
if (nice) {
xd.nice()
yd.nice()
}
const c = options.animate
? chart.transition()
: chart
c.select('.x.axis').call(xAxis)
c.select('.y.axis').call(yAxis)
}
Chart.js
Chart.js draws charts onto an HTML canvas element. new Chart takes the canvas and one configuration object. Inside that object, type picks the chart, such as bar or line, while data contains the labels and datasets, and options sets the scales. Unlike Recharts, which builds SVG elements, Chart.js paints pixels, so a chart can also render inside a web worker by passing an OffscreenCanvas to the constructor.
Downloads / mo
50.0M
Stars
67.8K
Last release
4.6.1, Oct 2026
License
MIT
Strengths
Small bundle.Import only the chart types in use.
Handles big line charts.The decimation plugin thins data before drawing.
Draws off the main thread.Renders in a web worker through OffscreenCanvas.
Limitations
Large line charts.For tens of thousands of points, the docs recommend the decimation plugin, which reduces the data before the chart draws it.
Workers lose interactions.Inside a web worker, plugins that use the DOM, including mouse interactions, will likely not work. Resizing the chart also becomes manual.
Apache ECharts draws interactive charts from a single option object. echarts.init attaches a chart instance to a container element. The option object passed to setOption lists the axes, the legend, the tooltip, and each series with its type and data. ECharts is written in JavaScript on zrender, a canvas drawing library. Extensions add three-dimensional plots and globes through ECharts GL, word clouds, and liquid fill charts.
Downloads / mo
30.6M
Stars
67.7K
Last release
6.1.0, May 2026
License
Apache-2.0
Strengths
Most chart types.The widest range of any open-source chart library.
Canvas or SVG.One config object, with a choice of renderer.
Limitations
Container needs a size.The container element needs a set width and height before echarts.init runs.
Wrappers are separate.Framework components come from separate packages, such as vue-echarts for Vue.
Highcharts draws charts in SVG, with some Canvas and WebGL rendering. Highcharts.chart takes the id of a container element and an options object with the chart type, the title, the axes, and an array of series. Stock charts use a separate constructor, Highcharts.stockChart. To reduce file size, a project can create a custom build that combines only the modules it uses.
Downloads / mo
11.2M
Stars
12.5K
Last release
13.1.1, Sep 2026
License
Custom license
Strengths
Stock, map, and Gantt charts.Covers financial, map, and Gantt charts beyond the usual types.
Feature-complete.More features than most free chart libraries.
More complete than free libraries.It ships more chart features than most free open-source chart libraries.
Limitations
Source available.Highcharts is a source-available product, licensed through the Highcharts shop instead of under an open source license.
ApexCharts draws interactive SVG charts from one configuration object, with no runtime dependencies. new ApexCharts takes a container element and the options, such as the chart type, the series, and the x-axis categories. Calling render then draws the chart. Official wrappers cover React, Vue, Angular, Blazor, and Stencil. For dense series, setting renderer to auto paints the data layer to a canvas above a point threshold while axes and tooltips stay SVG. A separate import, apexcharts/ssr, renders chart HTML on the server for frameworks such as Next.js.
Downloads / mo
9.3M
Stars
15.2K
Last release
8.8.1, Nov 2026
License
Custom license
Strengths
Zoom built in.No plugin needed; works with React, Vue, Angular, or plain JS.
Smooth data updates.Charts animate when the data changes.
Polished defaults.Looks finished without theme work.
Limitations
Premium features.A small set of advanced features, such as the unit and raincloud chart types, need a premium license key.
Extra chart imports.The default bundle leaves out chart types such as sunburst and violin, which need their own import.
var render_chart = function ( id ) {
if ( ! rediscache.charts[ id ] ) {
return;
}
if ( rediscache.chart ) {
rediscache.chart.destroy();
root.rediscache.chart = null;
}
var chart = new ApexCharts(
document.querySelector( '#redis-stats-chart' ),
rediscache.charts[ id ]
);
chart.render();
root.rediscache.chart = chart;
};
@observablehq/plot
Observable Plot charts tabular data by layering marks, such as dots, bars, lines, and rules, over shared scales. A plot specification assigns columns of the data to visual properties. Plot.dot(olympians, {x: "weight", y: "height"}), for example, draws a scatterplot with axes and scales chosen automatically. Transforms such as binX group the data before drawing, which turns the same table into a histogram. The d3 documentation recommends Plot unless a chart needs low-level control.
Downloads / mo
4.2M
Stars
5.4K
Last release
0.6.19, Nov 2026
License
ISC
Strengths
Short chart code.A few lines turn a table into a chart.
Built for exploration.Good defaults and built-in data transforms.
Limitations
React through a wrapper.React projects render plots inside a component of their own, either on the server through the document option or in the browser after mount.
uPlot draws time series, lines, areas, OHLC, and bar charts on a Canvas, in a library of about fifty kilobytes minified. new uPlot takes an options object with the size and series styles, a data array, and a target element. The first row of the data array contains the x values. Each later row contains one series. According to the README, a cold start draws an interactive chart of more than a hundred and sixty thousand points in about twenty-five milliseconds. A live chart redrawing thousands of points sixty times a second uses about a quarter of the CPU that Chart.js needs.
Downloads / mo
3.3M
Stars
10.6K
Last release
1.6.32, Mar 2025
License
MIT
Strengths
Very fast time series.Draws 166,650 points in 25 ms from a cold start.
Live streaming data.Updates efficiently as new data arrives.
Plugins for tooltips and sync.Cursor sync and custom tooltips use one hooks API.
Limitations
No animations.Transitions and animations are left out by design.
No drag panning.Drag scrolling and panning come from plugins built on the hooks API, such as zoom-touch.
No data processing.Aggregation and statistics happen before the data reaches the chart, in tools such as simple-statistics.
constructor(chartEl, options) {
if (!options.metric) {
throw new TypeError(`No metric type was provided`)
} else if (options.metric && !__METRICS__[options.metric]) {
throw new TypeError(`No metric defined for type ${options.metric}`)
}
const metric = __METRICS__[options.metric]
if (metric === Summary) {
this.metric = new Summary(options, chartEl)
this.uplotChart = this.metric.chart
} else {
this.uplotChart = new uPlot(metric.getConfig(options), metric.initialData(options), chartEl)
this.metric = new metric(this.uplotChart, options)
}
// setup the data buffer let isBufferingData = typeof options.refreshInterval !== "undefined"
this._isBufferingData = isBufferingData
this._buffer = []
this._timer = isBufferingData ? setInterval(
this._flushToChart.bind(this),
+options.refreshInterval
) : null
}
FAQ
It depends on the chart. Recharts builds charts from React components and has 198.6M downloads a month. Chart.js draws to a canvas without a framework, ECharts stays responsive with large datasets, ApexCharts adds interactive dashboard features, and d3 suits fully custom charts.
Recharts is built for React, has 198.6M downloads a month, and builds charts from JSX components such as LineChart and Tooltip. highcharts ships an official React integration, and apexcharts offers a React wrapper. echarts needs a third-party wrapper, such as echarts-for-react.
Highcharts needs a paid commercial license for any business use, including internal tools and prototypes. Personal and educational projects use it free. See highcharts.
echarts is the closest free alternative, with the widest range of chart types of any open-source library under the Apache-2.0 license. Chart.js is lighter and covers common charts such as line, bar, and pie under MIT.
uPlot is built for speed on time series, drawing 166,650 points in 25 ms from a cold start. ECharts also handles large datasets, and Chart.js thins big line charts with its decimation plugin. SVG libraries such as recharts and apexcharts slow down with thousands of points.
recharts fits React apps, building SVG charts from JSX components. Chart.js works in any web page, draws to a canvas from one config object, and thins big line charts with its decimation plugin. recharts has more downloads, at 198.6M a month against 50.0M.
For coding agents
Found your charting library? Help your agent use it.
Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.