Plotly.js renders interactive charts in the browser from JSON data and layout definitions. It also backs the Plotly Python and R packages.
Overview
Plotly.js is a standalone JavaScript library for building interactive data visualizations in web pages. You describe figures with data and layout objects, then draw them into a DOM element such as a div.
It supports many chart types, including statistical plots, three-dimensional graphs, scientific visualizations, SVG and tile maps, and financial charts. Bundles are available for npm installs, script tags, and CDN delivery, with complete and partial official bundles plus optional custom bundles to trim size.
The library can cooperate with MathJax for equations in titles, labels, and annotations when MathJax is loaded separately. WebGL-heavy pages can load a virtual-webgl helper when many WebGL charts share one page.
Documentation and examples cover configuration, responsive layouts, React integration, and event handling such as click, hover, and zoom. The same core powers Plotly Dash analytical apps in other ecosystems.
Key features
- Dozens of interactive chart types
- 2D, 3D, map, and financial plots
- npm, script tag, and CDN loading
- Customizable official and custom bundles
- MathJax support for formulas
- WebGL charts with optional helper
- Plotly.react and event callbacks
- Powers Plotly.py and Plotly.R
Use cases
- Interactive dashboards in web apps
- Scientific and statistical browser charts
- Financial and time-series visualization
- Map and geo visualizations online
Does the same job as
Plotly.js doesn't name these products itself, but its own description shows it does the same job.