Ready-to-use plotly.js distributed bundle.
Contains trace modules bar, barpolar, box, candlestick, carpet, choropleth, choroplethmap, cone, contour, contourcarpet, densitymap, funnel, funnelarea, heatmap, histogram, histogram2d, histogram2dcontour, icicle, image, indicator, isosurface, mesh3d, ohlc, parcats, parcoords, pie, quiver, sankey, scatter, scatter3d, scattercarpet, scattergeo, scattergl, scattermap, scatterpolar, scatterpolargl, scattersmith, scatterternary, splom, streamtube, sunburst, surface, table, treemap, violin, volume and waterfall.
For more info on plotly.js, go to https://github.com/plotly/plotly.js#readme
npm install plotly.js-dist
// ES6 module
import Plotly from 'plotly.js-dist'
// CommonJS
var Plotly = require('plotly.js-dist')This package includes its own TypeScript declarations.
import Plotly from 'plotly.js-dist'
import type { Data, Layout } from 'plotly.js-dist'
const data: Data[] = [{ type: 'scatter', x: [1, 2, 3], y: [4, 5, 6] }]
const layout: Partial<Layout> = { title: { text: 'Demo' } }
await Plotly.newPlot(div, data, layout)Code and documentation copyright 2026 Plotly, Inc.
Code released under the MIT license.
Docs released under the Creative Commons license.
Please visit complete list of dependencies.