Plotly.js
A strong pick. 5th of 9 chart libraries.
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
Overall7.2
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- npm downloadsLast4Weeks: Growth is below the median and far behind ECharts and Recharts.
- unpkg.com/plotly.js@4.3.0/dist/README.md: Bundle sizes confirm its heavy weight.
- plotly.com/javascript/guides/whats-new-in-v4: Active development and new TS types.
GPT-6.2 Sol: 7.8, likely 6.7 to 8.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.
- docs.streamlit.io/develop/api-reference/charts/st.plotly_chart: A downstream integrator recommends Plotly for scientific and 3D figures and ECharts or Vega-based tools for routine 2D.
- chartjs.org/docs/latest: Chart.js focuses on common chart types and supports selective imports.
- github.com/plotly/plotly.js/blob/v4.3.0/dist/README.md: Specialized trace coverage and a substantial full browser bundle.
- github releasesLastYear, npm hasTypes, npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo and medianDownloadsRatio: Active release cadence and bundled types, with download growth below the catalog baseline.
- github.com/ABTSoftware/javascript-chart-performance-test-suite/blob/main/README.md: Stress tests show that rendering performance varies by chart type and scale.
Needed by many5.4
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
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.
- apexcharts.com/blog/state-of-javascript-charting-2026: Positions Plotly for large datasets and 3D, and calls it heavy.
- chartts.pages.dev/blog/best-javascript-chart-libraries-2026: Lists a partial Plotly build at about 300 KB, larger than the peers.
GPT-6.2 Sol: 5.8, likely 4.6 to 7.0
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.
- plotly.com/javascript: Standalone library with standard, statistical, scientific, map, and 3D charts.
- 2025.stateofjs.com/en-US/other-tools: Chart.js and D3 drew thousands of responses in the graphics question.
- docs.streamlit.io/develop/api-reference/charts/st.plotly_chart: Streamlit points users to Plotly for 3D and scientific chart types.
Helps a lot7.7
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- plotly.com/javascript/guides/whats-new-in-v4: v4 ships its own TS types and adds a quiver trace.
- unpkg.com/plotly.js@4.3.0/dist/README.md: Full bundle is 1.52 MB minified and 507 kB gzipped.
- community.plotly.com/t/plotly-js-size-is-huge-3mb-in-production-build/45407: Users complain about bundle size in production.
- lightningchart.com/blog/the-ultimate-javascript-charting-library-comparison-2026/page/415: Vendor benchmark shows Plotly slowing at very large sizes.
GPT-6.2 Sol: 8.3, likely 7.2 to 9.2
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.
- github.com/plotly/plotly.js/blob/v4.3.0/dist/README.md: Current trace inventory and measured bundle sizes.
- plotly.com/javascript/guides/typescript: Generated trace and event types, with a registration gap in custom bundles.
- plotly.com/javascript/plotlyjs-function-reference: Documents chart creation, incremental updates, and image export.
- github.com/ABTSoftware/javascript-chart-performance-test-suite/blob/main/README.md: Competitor-run benchmark shows results vary sharply by workload.
- github.com/plotly/plotly.js/issues/6920: Open report documents missing accessible names on rendered SVGs.
Holds up over time7.8
Will it still be a good choice in two years?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- github commitsLastYear: 1,595 commits, 342 contributors.
- github releasesLastYear: 13 releases; v4.3.0 published 2026-11-10.
- plotly.com/javascript/guides/migrating-to-v4: v4 breaking changes need a migration.
- plotly.com/about: Company focus on Plotly Studio and Cloud; Chart Studio closed.
GPT-6.2 Sol: 8.0, likely 6.9 to 9.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.
- github releasesLastYear, commitsLastYear, openIssues and openPullRequests: 13 releases and 1,595 commits, with 726 open issues and 84 open pull requests.
- github.com/plotly/plotly.js: Plotly offers paid services for the library and lists several active maintainers.
- github.com/plotly/plotly.js/releases: Multiple maintainers publish releases that include community contributions.
- plotly.com/javascript/guides/whats-new-in-v4: Documents the MapLibre migration and Node.js 22 requirement.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo and medianDownloadsRatio: 2.78× year-over-year download growth against a 4.1× catalog median.
Used widely5.1
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- npm downloadsLast4Weeks: 3.87M, against 1.39M a year ago (ratio 2.78, below the 4.1 median).
- github stars: 18.4k stars, mid-tier among the peers.
- dependents: No ecosyste.ms count available.
- apexcharts.com/blog/state-of-javascript-charting-2026: About 3.1M monthly downloads, mid-field.
GPT-6.2 Sol: 5.1, likely 3.7 to 6.5
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.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio and peers: Below-baseline growth and a smaller main package than the leading peers.
- github stars, dependents, bluesky posts and hackerNews stories: 18,386 stars, no dependent count, six Bluesky posts, and one Hacker News story.
- github.com/plotly/plotly.js/blob/v4.3.0/dist/README.md: CDN files and separate npm packages sit outside the main package count.
- grafana.com/grafana/plugins/nline-plotlyjs-panel: Grafana reports the downstream Plotly panel running on over 6,000 active instances.
Vouched for7.1
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- apexcharts.com/blog/state-of-javascript-charting-2026: Recommends it for large-data and 3D use.
- stackshare.io/echarts/vs/plotly-js: Independent comparison with ECharts.
- hackerNews: Only one story, with 2 points.
- Plotly Python/R/Dash ecosystem: plotly.js is the rendering engine for these widely used tools.
GPT-6.2 Sol: 7.1, likely 5.8 to 8.3
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.
- github.com/streamlit/streamlit/pull/16740: Streamlit upgraded its frontend dependency to Plotly.js v4.
- docs.streamlit.io/develop/api-reference/charts/st.plotly_chart: Recommends Plotly for scientific figures and lighter alternatives for new 2D charts.
- grafana.com/grafana/plugins/nline-plotlyjs-panel: Third-party Plotly.js panel with a measured active install base.
- reddit.com/r/Frontend/comments/1jjc3ln/is_chart_js_still_king: A team describes choosing Plotly for integration with Python.
- github.com/ABTSoftware/javascript-chart-performance-test-suite/blob/main/README.md: Competitor benchmark shows strong results in some workloads and poor scaling in others.
- 2025.stateofjs.com/en-US/other-tools: Graphics results provide peer context and little direct evidence for Plotly.js satisfaction.
Safe6.6
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- advisories: 2 in total and none in the last 24 months; one critical in 2024, fixed.
- npm dependencies: 42 direct dependencies.
- scorecard: 6.4 overall; Token-Permissions, SAST and Fuzzing at 0.
- npm license: MIT.
GPT-6.2 Sol: 6.6, likely 5.3 to 7.9
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.
- npm dependencies and license: 42 direct dependencies and an MIT licence.
- scorecard score and checks: 6.4 overall, with stronger review and security policy and weaker workflow permissions and security testing.
- osv.dev/vulnerability/GHSA-wjc4-73q6-gv3m: Critical prototype pollution fixed in 2.25.2.
- github.com/plotly/plotly.js/releases/tag/v2.25.2: The fix was released before the indexed advisory.
- osv.dev/vulnerability/GHSA-2fqv-h3r5-m4vf: Older cross-site scripting issue fixed in 1.16.0.
- github.com/plotly/plotly.js/releases/tag/v4.3.0: Latest release includes a further prototype-pollution fix.
- github.com/plotly/plotly.js/releases/tag/v4.1.1: Updated MapLibre to address a dependency CVE.
- github.com/plotly/plotly.js/blob/v4.3.0/RELEASE.md: Documents manual npm publishing with an authorization prompt.
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
- npm downloads, 4 weeks
- 3.9M ×2.8 in a year
- GitHub stars
- 18k
- Commits, 12 months
- 1.6k
- npm version
- 4.3.0 Nov 2026
- Versions, 12 months
- 12
- Advisories, 24 months
- 0 of 2 ever
- OpenSSF Scorecard
- 6.4 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (plotly/plotly.js), npm (plotly.js), OSV and the OpenSSF Scorecard.