# Plotly.js: 7.2 out of 10

A strong pick. 5th of 9 in [Chart libraries](https://elestia.ai/opensource/charts/index.md).

Plotly.js is a large charting library with many chart types. It covers 3D, maps, WebGL scatter, statistical and scientific charts, and it is the engine behind Plotly for Python and R and behind Dash. It is a solid, actively maintained choice for analytic and scientific charts. Its bundle of about 0.5 MB gzipped makes it a poor fit for typical app dashboards, where ECharts, Recharts or Chart.js are lighter and growing faster.

**Best for:** Teams that build scientific, analytic or 3D/geo visualisations and want one declarative JSON spec that also works with Plotly for Python and R.

## Scores

- **Overall: 7.2** (likely 6.1 to 8.2)
  - Claude Opus 5.5 (6.5): For scientific, analytic, 3D or geo charts it is a strong, maintained pick with unmatched chart variety. For most web apps, its large bundle and slowing share make ECharts, Recharts or Chart.js the better default. The range is wide because the fit depends heavily on the kind of project.
  - GPT-6.2 Sol (7.8): Plotly.js is a strong pick when a new project needs interactive scientific plots, 3D surfaces, or figures shared with Python. Its built-in types and active release cadence make those capabilities practical to adopt today. Chart.js is a lighter choice for routine 2D charts, and Apache ECharts is a stronger general dashboard option. Bundle cost, workload-dependent rendering performance, and slower relative download growth keep Plotly.js from being the category default.
- **Needed by many: 5.4** (likely 4.3 to 6.8)
  - Claude Opus 5.5 (5.0): Charts in the browser are a common need, but Plotly's strength is analytic, scientific and 3D charting, not light product dashboards. Its weight puts off many app developers who only need bar and line charts. So it serves a solid but narrower group than the whole category.
  - GPT-6.2 Sol (5.8): Browser charting serves a substantial group of developers building dashboards, reports, and data tools. Plotly.js works across frontend frameworks, with its clearest fit in projects that need scientific plots, maps, or 3D. The surveys give a sense of demand for charting, while the share of JavaScript developers who need Plotly.js's richer feature set remains uncertain.
- **Helps a lot: 7.7** (likely 6.6 to 8.6)
  - Claude Opus 5.5 (7.0): No peer offers more chart types out of the box. It also has strong interactivity and WebGL traces, and v4 added first-party TypeScript types. Its bundle size, imperative API and limited fine styling hold it back against ECharts for breadth per kilobyte, and against React-native libraries for app work. AI agents write it well because its JSON spec is widely documented through Plotly for Python.
  - GPT-6.2 Sol (8.3): Version 4.3.0 handles a wide range of interactive charts through one figure format, and its schema reference and built-in types give developers and coding agents concrete options to check. Custom bundles help with download size, though TypeScript still accepts trace types a custom build never registered. A benchmark run by the makers of SciChart found strong results for some many-series charts and much weaker results for dense dashboards and 3D point clouds. Performance depends on the workload, and an open screen-reader issue limits confidence in accessibility.
- **Holds up over time: 7.8** (likely 6.7 to 8.8)
  - Claude Opus 5.5 (7.5): Plotly Inc. funds the work, and the library is the core of its Dash and Studio products. It had 1,595 commits, 13 releases and a release on 2026-11-10. Two breaking majors in quick succession and the company's turn towards AI products add some risk. Still, its commercial stack depends on plotly.js, so continued upkeep is very likely.
  - GPT-6.2 Sol (8.0): Plotly backs the library, more than one maintainer publishes GitHub releases, and 13 releases and 1,595 commits in the past year show active development. Version 4 requires migration for legacy Mapbox traces and raises the Node.js minimum to 22. The issue backlog and slower relative npm growth leave some uncertainty about support and adoption over the next two years.
- **Used widely: 5.1** (likely 3.9 to 6.3)
  - Claude Opus 5.5 (5.0): It had 3.87M downloads in 4 weeks, up 2.8x from a year ago, which is below the 4.1 median. The peers grew much faster: Recharts 7.5x and ECharts 6.9x. Much of its real use runs through Dash, Plotly for Python and R, and Jupyter, so npm undercounts it. Among direct JS choices it is mid-tier and losing share.
  - GPT-6.2 Sol (5.1): The main npm package rose from 1.39 million to 3.87 million downloads in four weeks year over year. That 2.78× increase trails the 4.1× catalog baseline, and the package has far fewer downloads than Chart.js, Recharts, or ECharts. Build automation and downstream installs can inflate the count, while CDN and sibling-package use escape it. The missing dependent count leaves the number of direct users uncertain, and six Bluesky links and one low-engagement Hacker News story add little precision.
- **Vouched for: 7.1** (likely 5.9 to 8.2)
  - Claude Opus 5.5 (7.0): It renders charts for Plotly for Python and R, for Dash, and for many notebook and data-science tools, so many organisations run it in production. Independent comparisons consistently name it the pick for scientific and 3D work. Survey data and recent independent JS write-ups are thin, and HN and Bluesky attention is minimal.
  - GPT-6.2 Sol (7.1): Streamlit integrated Plotly.js v4 and recommends Plotly for 3D and scientific figures, and an independent Grafana panel shows real deployment. A frontend team also reported choosing Plotly for Python integration and ECharts for its other frontend apps. Mixed benchmark results and limited survey evidence on Plotly.js satisfaction keep the score below the top tier.
- **Safe: 6.6** (likely 5.4 to 7.7)
  - Claude Opus 5.5 (6.5): It has an MIT licence and no advisories in 24 months. The 2024 critical prototype-pollution advisory was fixed. It pulls in 42 dependencies, a large attack surface for a chart library. Its Scorecard is 6.4, with weak token-permissions, SAST and fuzzing checks.
  - GPT-6.2 Sol (6.6): The MIT licence is permissive, and both listed advisories have fixes, with the critical fix shipped before its advisory appeared in OSV. Version 4.3.0 adds another prototype-pollution fix, and 4.1.1 addressed a vulnerable map dependency. The main package has 42 direct dependencies, and OpenSSF Scorecard gives it 6.4 out of 10, with zeroes for token permissions, static analysis, and fuzzing. The documented npm release is manual and requires authorization, and the number of authorized publishers is unclear.

## Good

- Over 40 trace types, including 3D surfaces, maps, Sankey, parallel coordinates and WebGL scatter for large datasets.
- Built-in zoom, pan, hover and export, with a declarative JSON figure format shared with Plotly for Python, R and Dash.
- A paid company team maintains it actively: about 1,600 commits and 13 releases in the last year.
- Since v4 it ships its own TypeScript types, with trace data narrowed by the `type` field.

## Bad

- The bundle is very large: the full build is about 507 kB gzipped, and even the basic partial bundle is about 366 kB gzipped.
- Two major versions in about 18 months (v3 and v4) removed APIs and mapbox traces, and v4 needs Node 22.
- Its imperative API and React wrapper feel less idiomatic in component-based apps than Recharts or visx.
- npm downloads grow well below the median, so it is losing share among new JS projects.

## The numbers

- Downloads, 4 weeks: 3.9M
- In a year: ×2.8
- GitHub stars: 18k
- Commits, 12 months: 1.6k
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/plotly/plotly.js
- npm: https://www.npmjs.com/package/plotly.js

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
