design-infraGitHub
← Sources

Plotly.js

npmfree

Statistical, scientific and financial charts with built-in interaction.

$pnpm add plotly.js-dist-min

Plotly.js

Statistical, scientific and financial charts with built-in interaction.

Use it well

Use the open-source JavaScript library rather than assuming a paid hosted product. Load browser-only code outside SSR and inspect bundle size; clean up plots when leaving the page.

Install one suitable engine for the task. Existing shadcn charts remain useful for conventional React dashboards. Chart engines and integration recipes do not become complete application components just by installing their npm package.

Install

pnpm add plotly.js-dist-min

Check the consuming project's installed versions first; preserve its stack and theme. Renderer support is a library capability: alternate renderers or plugins can require additional dependencies. Provide real data, units, loading/empty/error states and an accessible table or explanation.

Public references

Starting patterns

  • Scatter plot — Inspect numeric relationships. Install: pnpm add plotly.js-dist-min.
  • Box plot — Compare distributions across groups. Install: pnpm add plotly.js-dist-min.
  • Heatmap — Read a numeric matrix. Install: pnpm add plotly.js-dist-min.
  • Candlestick chart — Explore OHLC financial time series. Install: pnpm add plotly.js-dist-min.
  • 3D surface — Inspect a sampled surface. Install: pnpm add plotly.js-dist-min.

Verification and previews

Public package metadata and documentation links audited 2026-10-18. Initial package version: plotly.js-dist-min@4.1.2. The primary package declares no npm peer dependencies.

This is a metadata/reference audit, not a fresh-project runtime, browser, accessibility or performance verification. Generated entries retain current package metadata after sync. External examples stay on the source site; hosted adapters require separate implementation, attribution and browser checks.

Refresh this source with pnpm sync plotly or the full group with pnpm sync charts, then pnpm catalog. Curated inputs live in catalog/chart-libraries.json; npm metadata is read without installing packages. Unknown or changed licensing fails sync for review.