PHPackages                             plotly/plotly.js - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. plotly/plotly.js

ActiveLibrary

plotly/plotly.js
================

The open source javascript graphing library that powers plotly

v3.4.0(2mo ago)18.2k176.0k↓39.1%2.0k[640 issues](https://github.com/plotly/plotly.js/issues)[56 PRs](https://github.com/plotly/plotly.js/pulls)2MITJavaScriptCI passing

Since Feb 15Pushed 1mo ago281 watchersCompare

[ Source](https://github.com/plotly/plotly.js)[ Packagist](https://packagist.org/packages/plotly/plotly.js)[ Docs](https://plotly.com/javascript/)[ Fund](https://plot.ly/products/consulting-and-oem/)[ GitHub Sponsors](https://github.com/plotly)[ RSS](/packages/plotly-plotlyjs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (294)Used By (2)Security (1)

[![](https://camo.githubusercontent.com/b8949ca5876e0e03236e244c3c5033ec799cbd64b1d9405efa235a9574c017a0/68747470733a2f2f696d616765732e706c6f742e6c792f6c6f676f2f706c6f746c796a732d6c6f676f4032782e706e67)](https://plotly.com/javascript/)

[![npm version](https://camo.githubusercontent.com/c51e0350b0c6557623ccb80a6914910b7924baaacff5f5891ca6643ed2900bdf/68747470733a2f2f62616467652e667572792e696f2f6a732f706c6f746c792e6a732e737667)](https://badge.fury.io/js/plotly.js)[![circle ci](https://camo.githubusercontent.com/7bdffe34c27137783a4a4c73b88962c09206b4d54406c411f68e97789bf5cf45/68747470733a2f2f636972636c6563692e636f6d2f67682f706c6f746c792f706c6f746c792e6a732e7376673f7374796c653d736869656c64)](https://circleci.com/gh/plotly/plotly.js)[![MIT License](https://camo.githubusercontent.com/1a2e0606685ce00663bf829868f794fd3fc9c86f8d80cae324734129e0723a58/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/plotly/plotly.js/blob/master/LICENSE)

[Plotly.js](https://plotly.com/javascript) is a standalone JavaScript data visualization library, and it also powers the Python and R modules named `plotly` in those respective ecosystems (referred to as [Plotly.py](https://plotly.com/python) and [Plotly.R](http://plotly.com/r)).

Plotly.js can be used to produce dozens of chart types and visualizations, including statistical charts, 3D graphs, scientific charts, SVG and tile maps, financial charts and more.

 [ ![](https://raw.githubusercontent.com/cldougl/plot_images/add_r_img/plotly_2017.png) ](https://plotly.com/javascript/)

[Contact us](https://plotly.com/products/consulting-and-oem/) for Plotly.js consulting, dashboard development, application integration, and feature additions.

 [ ![Maintained by Plotly](https://camo.githubusercontent.com/365d7b7f1de7e4a3cc725ded76a091b5669625d4ebcaba0e8977f92db9ead4a9/68747470733a2f2f646173682e706c6f746c792e636f6d2f6173736574732f696d616765732f6d61696e7461696e65642d62792d706c6f746c792e706e67) ](https://dash.plotly.com/project-maintenance)

Table of contents
-----------------

[](#table-of-contents)

- [Load as a node module](#load-as-a-node-module)
- [Load via script tag](#load-via-script-tag)
- [Bundles](#bundles)
- [Alternative ways to load and build plotly.js](#alternative-ways-to-load-and-build-plotlyjs)
- [Documentation](#documentation)
- [Bugs and feature requests](#bugs-and-feature-requests)
- [Contributing](#contributing)
- [Notable contributors](#notable-contributors)
- [Copyright and license](#copyright-and-license)
- [Community](#community)

---

Load as a node module
---------------------

[](#load-as-a-node-module)

Install [a ready-to-use distributed bundle](https://github.com/plotly/plotly.js/blob/master/dist/README.md)

```
npm i --save plotly.js-dist-min
```

and use import or require in node.js

```
// ES6 module
import Plotly from 'plotly.js-dist-min'

// CommonJS
var Plotly = require('plotly.js-dist-min')
```

You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plotly.js-dist) if you prefer using an unminified package.

---

Load via script tag
-------------------

[](#load-via-script-tag)

### The script HTML element

[](#the-script-html-element)

> In the examples below, the `Plotly` object is added to the window scope by the `script` tag. The `newPlot` method is then used to draw an interactive figure as described by `data` and `layout` into the desired `div` here named `gd`. As demonstrated in the example above, basic knowledge of HTML and [JSON](https://en.wikipedia.org/wiki/JSON) syntax is enough to get started, i.e., with or without JavaScript! To learn and build more with plotly.js, please visit the [plotly.js documentation](https://plotly.com/javascript).

```

        Plotly.newPlot("gd", /* JSON object */ {
            "data": [{ "y": [1, 2, 3] }],
            "layout": { "width": 600, "height": 400}
        })

```

Alternatively, you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.

```

    import "https://cdn.plot.ly/plotly-3.4.0.min.js"
    Plotly.newPlot("gd", [{ y: [1, 2, 3] }])

```

Fastly supports Plotly.js with free CDN service. Read more at .

### Un-minified versions are also available on CDN

[](#un-minified-versions-are-also-available-on-cdn)

While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.

```

```

> Please note that as of v2 the "plotly-latest" outputs (e.g. ) will no longer be updated on the CDN, and will stay at the last v1 patch v1.58.5. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version.

### MathJax

[](#mathjax)

You can load either version two or version three of MathJax files. For example:

```

```

```

```

> When using MathJax version 3, it is also possible to use `chtml` output on the other parts of the page in addition to `svg` output for the plotly graph. Please refer to `devtools/test_dashboard/index-mathjax3chtml.html` to see an example.

### Need to have several WebGL graphs on a page?

[](#need-to-have-several-webgl-graphs-on-a-page)

You may simply load the [virtual-webgl](https://github.com/greggman/virtual-webgl) script for WebGL 1 (not WebGL 2) before loading other scripts.

```

```

Bundles
-------

[](#bundles)

There are two kinds of plotly.js bundles:

1. Complete and partial official bundles that are distributed to `npm` and the `CDN`, described in [the dist README](https://github.com/plotly/plotly.js/blob/master/dist/README.md).
2. Custom bundles you can create yourself to optimize the size of the bundle depending on your needs. Please visit [CUSTOM\_BUNDLE](https://github.com/plotly/plotly.js/blob/master/CUSTOM_BUNDLE.md) for more information.

---

Alternative ways to load and build plotly.js
--------------------------------------------

[](#alternative-ways-to-load-and-build-plotlyjs)

If your library needs to bundle or directly load [plotly.js/lib/index.js](https://github.com/plotly/plotly.js/blob/master/lib/index.js) or parts of its modules similar to [index-basic](https://github.com/plotly/plotly.js/blob/master/lib/index-basic.js) in some other way than via an official or a custom bundle, or in case you want to tweak the default build configurations, then please visit [`BUILDING.md`](https://github.com/plotly/plotly.js/blob/master/BUILDING.md).

---

Documentation
-------------

[](#documentation)

Official plotly.js documentation is hosted at .

These pages are generated by the Plotly [graphing-library-docs repo](https://github.com/plotly/graphing-library-docs) built with [Jekyll](https://jekyllrb.com/) and publicly hosted on GitHub Pages. For more info about contributing to Plotly documentation, please read through [contributing guidelines](https://github.com/plotly/graphing-library-docs/blob/master/README.md).

---

Bugs and feature requests
-------------------------

[](#bugs-and-feature-requests)

Have a bug or a feature request? Please [open a Github issue](https://github.com/plotly/plotly.js/issues/new) keeping in mind the [issue guidelines](https://github.com/plotly/plotly.js/blob/master/.github/ISSUE_TEMPLATE.md). You may also want to read about [how changes get made to Plotly.js](https://github.com/plotly/plotly.js/blob/master/CONTRIBUTING.md).

---

Contributing
------------

[](#contributing)

Please read through our [contributing guidelines](https://github.com/plotly/plotly.js/blob/master/CONTRIBUTING.md). Included are directions for opening issues, using plotly.js in your project and notes on development.

---

Notable contributors
--------------------

[](#notable-contributors)

Plotly.js is at the core of a large and dynamic ecosystem with many contributors who file issues, reproduce bugs, suggest improvements, write code in this repo (and other upstream or downstream ones) and help users in the Plotly community forum. The following people deserve special recognition for their outsized contributions to this ecosystem:

ContributorGitHubStatus**Alex C. Johnson**[@alexcjohnson](https://github.com/alexcjohnson)Active, Maintainer**Emily Kellison-Linn**[@emilykl](https://github.com/emilykl)Active, Maintainer**Cameron DeCoster**[@camdecoster](https://github.com/camdecoster)Active, Maintainer**Mojtaba Samimi**[@archmoj](https://github.com/archmoj)Active, Community Contributor**My-Tien Nguyen**[@my-tien](https://github.com/my-tien)Active, Community Contributor**Birk Skyum**[@birkskyum](https://github.com/birkskyum)Active, Community Contributor**Étienne Tétreault-Pinard**[@etpinard](https://github.com/etpinard)Hall of Fame**Antoine Roy-Gobeil**[@antoinerg](https://github.com/antoinerg)Hall of Fame**Jack Parmer**[@jackparmer](https://github.com/jackparmer)Hall of Fame**Nicolas Kruchten**[@nicolaskruchten](https://github.com/nicolaskruchten)Hall of Fame**Mikola Lysenko**[@mikolalysenko](https://github.com/mikolalysenko)Hall of Fame**Ricky Reusser**[@rreusser](https://github.com/rreusser)Hall of Fame**Dmitry Yv.**[@dy](https://github.com/dy)Hall of Fame**Jon Mease**[@jonmmease](https://github.com/jonmmease)Hall of Fame**Robert Monfera**[@monfera](https://github.com/monfera)Hall of Fame**Robert Möstl**[@rmoestl](https://github.com/rmoestl)Hall of Fame**Nicolas Riesco**[@n-riesco](https://github.com/n-riesco)Hall of Fame**Miklós Tusz**[@mdtusz](https://github.com/mdtusz)Hall of Fame**Chelsea Douglas**[@cldougl](https://github.com/cldougl)Hall of Fame**Ben Postlethwaite**[@bpostlethwaite](https://github.com/bpostlethwaite)Hall of Fame**Hannah Ker**[@hannahker](https://github.com/hannahker)Hall of Fame**Chris Parmer**[@chriddyp](https://github.com/chriddyp)Hall of Fame**Alex Vados**[@alexander-daniel](https://github.com/alexander-daniel)Hall of Fame---

Copyright and license
---------------------

[](#copyright-and-license)

Code and documentation copyright 2025 Plotly, Inc.

Code released under the [MIT license](https://github.com/plotly/plotly.js/blob/master/LICENSE).

### Versioning

[](#versioning)

This project is maintained under the [Semantic Versioning guidelines](https://semver.org/).

See the [Releases section](https://github.com/plotly/plotly.js/releases) of our GitHub project for changelogs for each release version of plotly.js.

---

Community
---------

[](#community)

- Follow us on [X](https://x.com/plotlygraphs) and [LinkedIn](https://www.linkedin.com/company/plotly/) for the latest Plotly news.
- Implementation help may be found on our community forum (tagged [`plotly-js`](https://community.plotly.com/c/plotly-js)) or on Stack Overflow (tagged [`plotly.js`](https://stackoverflow.com/questions/tagged/plotly.js)).
- Developers should use the keyword `plotly` on packages which modify or add to the functionality of plotly.js when distributing through [npm](https://www.npmjs.com/search?q=keywords:plotly).

###  Health Score

74

—

ExcellentBetter than 100% of packages

Maintenance86

Actively maintained with recent releases

Popularity68

Solid adoption and visibility

Community45

Growing community involvement

Maturity83

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~15 days

Recently: every ~32 days

Total

216

Last Release

87d ago

Major Versions

v1.58.4 → v2.0.0-rc.02021-02-03

v1.58.5 → v2.2.12021-07-06

v2.35.2 → v3.0.0-rc.02024-11-12

v2.35.3 → v3.0.0-rc.22024-12-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/5538c1ef304df519e72f3191b117f7e440130d8ffb2c97b1138058082018b4aa?d=identicon)[plotly](/maintainers/plotly)

---

Top Contributors

[![etpinard](https://avatars.githubusercontent.com/u/6675409?v=4)](https://github.com/etpinard "etpinard (6709 commits)")[![archmoj](https://avatars.githubusercontent.com/u/33888540?v=4)](https://github.com/archmoj "archmoj (6701 commits)")[![alexcjohnson](https://avatars.githubusercontent.com/u/2678795?v=4)](https://github.com/alexcjohnson "alexcjohnson (3100 commits)")[![jackparmer](https://avatars.githubusercontent.com/u/1865834?v=4)](https://github.com/jackparmer "jackparmer (1072 commits)")[![bpostlethwaite](https://avatars.githubusercontent.com/u/1176674?v=4)](https://github.com/bpostlethwaite "bpostlethwaite (864 commits)")[![antoinerg](https://avatars.githubusercontent.com/u/301546?v=4)](https://github.com/antoinerg "antoinerg (711 commits)")[![alexander-daniel](https://avatars.githubusercontent.com/u/5408720?v=4)](https://github.com/alexander-daniel "alexander-daniel (602 commits)")[![emilykl](https://avatars.githubusercontent.com/u/4672118?v=4)](https://github.com/emilykl "emilykl (503 commits)")[![rreusser](https://avatars.githubusercontent.com/u/572717?v=4)](https://github.com/rreusser "rreusser (439 commits)")[![theengineear](https://avatars.githubusercontent.com/u/6611546?v=4)](https://github.com/theengineear "theengineear (402 commits)")[![andrefarzat](https://avatars.githubusercontent.com/u/649219?v=4)](https://github.com/andrefarzat "andrefarzat (392 commits)")[![monfera](https://avatars.githubusercontent.com/u/1548516?v=4)](https://github.com/monfera "monfera (383 commits)")[![mdtusz](https://avatars.githubusercontent.com/u/6494463?v=4)](https://github.com/mdtusz "mdtusz (373 commits)")[![camdecoster](https://avatars.githubusercontent.com/u/288066?v=4)](https://github.com/camdecoster "camdecoster (342 commits)")[![dy](https://avatars.githubusercontent.com/u/300067?v=4)](https://github.com/dy "dy (333 commits)")[![chriddyp](https://avatars.githubusercontent.com/u/1280389?v=4)](https://github.com/chriddyp "chriddyp (330 commits)")[![my-tien](https://avatars.githubusercontent.com/u/3898364?v=4)](https://github.com/my-tien "my-tien (240 commits)")[![birkskyum](https://avatars.githubusercontent.com/u/74932975?v=4)](https://github.com/birkskyum "birkskyum (222 commits)")[![n-riesco](https://avatars.githubusercontent.com/u/6199391?v=4)](https://github.com/n-riesco "n-riesco (210 commits)")[![mikolalysenko](https://avatars.githubusercontent.com/u/231686?v=4)](https://github.com/mikolalysenko "mikolalysenko (192 commits)")

---

Tags

charting-librarychartsd3data-visualizationplotlyplotly-dashreglvisualizationwebgldatavisualizationgraphingplottingplotly

### Embed Badge

![Health badge](/badges/plotly-plotlyjs/health.svg)

```
[![Health](https://phpackages.com/badges/plotly-plotlyjs/health.svg)](https://phpackages.com/packages/plotly-plotlyjs)
```

###  Alternatives

[fakerphp/faker

Faker is a PHP library that generates fake data for you.

3.9k358.5M3.5k](/packages/fakerphp-faker)[nelmio/alice

Expressive fixtures generator

2.5k43.4M133](/packages/nelmio-alice)[dflydev/dot-access-data

Given a deep data structure, access data by dot notation.

718359.1M86](/packages/dflydev-dot-access-data)[doctrine/mongodb-odm

PHP Doctrine MongoDB Object Document Mapper (ODM) provides transparent persistence for PHP objects to MongoDB.

1.1k23.3M302](/packages/doctrine-mongodb-odm)[sonata-project/exporter

Lightweight Exporter library

44920.9M35](/packages/sonata-project-exporter)[theofidry/alice-data-fixtures

Nelmio alice extension to persist the loaded fixtures.

32528.5M70](/packages/theofidry-alice-data-fixtures)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
