Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,21 @@ To see all merged commits on the main branch that will be part of the next plotl

where X.Y.Z is the semver of most recent plotly.js release.

## [X.Y.Z] -- UNRELEASED
## [4.1.2] -- 2026-10-05

### Changed
- Use `ResizeObserver` for responsive chart resizing instead of listening for window resize events [[#8017](https://github.com/plotly/plotly.js/pull/8017)], with thanks to @Lexachoc for the contribution!
- Describe `config.toImageButtonOptions` in the plot schema [[#8066](https://github.com/plotly/plotly.js/pull/8066)]

### Fixed
- Fix modebar hover colors not updating after `color` or `activecolor` changes [[#8024](https://github.com/plotly/plotly.js/pull/8024)], with thanks to @Lexachoc for the contribution!
- Correct the image export types: `format` now accepts `full-json`, `width` and `height` accept `null`, and `ToImgopts.format`, `ToImgopts.width`, `ToImgopts.height` and `DownloadImgopts.filename` are optional because `toImage` and `downloadImage` supply them [[#8066](https://github.com/plotly/plotly.js/pull/8066)]
- Pick the trace drawn last on a hover tie in `scattergl` and `splom` (matching `scatter`) [[#8079](https://github.com/plotly/plotly.js/pull/8079)]
- Allow typed arrays in the types for `arrayOk` number and color attributes [[#8087](https://github.com/plotly/plotly.js/pull/8087)]
- Redraw plots when a font that they use finishes loading [[#8094](https://github.com/plotly/plotly.js/pull/8094)]


## [4.1.1] -- 2026-09-14

### Changed
- Update `maplibre-gl` to v6 to address [CVE-2026-85061](https://github.com/advisories/GHSA-jrc7-96c5-q579) [[#8035](https://github.com/plotly/plotly.js/pull/8035)]
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors:
- family-names: "Samimi"
given-names: "Mojtaba"
title: "Open source Plotly charting library"
version: 4.1.1
version: 4.1.2
doi: 10.5281/zenodo.13964707
date-released: 2026-09-14
date-released: 2026-10-05
url: "https://github.com/plotly/plotly.js"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo

```html
<head>
<script src="https://cdn.plot.ly/plotly-4.1.1.min.js" charset="utf-8"></script>
<script src="https://cdn.plot.ly/plotly-4.1.2.min.js" charset="utf-8"></script>
</head>
<body>
<div id="gd"></div>
Expand All @@ -79,7 +79,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
Alternatively, you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
```html
<script type="module">
import "https://cdn.plot.ly/plotly-4.1.1.min.js"
import "https://cdn.plot.ly/plotly-4.1.2.min.js"
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
</script>
```
Expand All @@ -89,7 +89,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
### 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.
```html
<script src="https://cdn.plot.ly/plotly-4.1.1.js" charset="utf-8"></script>
<script src="https://cdn.plot.ly/plotly-4.1.2.js" charset="utf-8"></script>
```

> Please note that as of v2 the "plotly-latest" outputs (e.g. https://cdn.plot.ly/plotly-latest.min.js) 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.
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.5/schema.json",
"$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"files": {
"maxSize": 10000000,
Expand Down
2 changes: 1 addition & 1 deletion build/maplibre_worker.js

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ The main plotly.js bundles weight in at:

| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
|-----------|---------------|----------------------|---------------------|
| 10.1 MB | 4.82 MB | 1.48 MB | 10.5 MB |
| 10.1 MB | 4.83 MB | 1.49 MB | 10.5 MB |

#### CDN links
> https://cdn.plot.ly/plotly-4.1.1.js
> https://cdn.plot.ly/plotly-4.1.2.js

> https://cdn.plot.ly/plotly-4.1.1.min.js
> https://cdn.plot.ly/plotly-4.1.2.min.js


#### npm packages
Expand Down Expand Up @@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.94 MB | 1.19 MB | 398 kB |
| 2.96 MB | 1.2 MB | 401 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-4.1.1.js
> https://cdn.plot.ly/plotly-basic-4.1.2.js

> https://cdn.plot.ly/plotly-basic-4.1.1.min.js
> https://cdn.plot.ly/plotly-basic-4.1.2.min.js


#### npm packages
Expand All @@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.71 MB | 1.5 MB | 500 kB |
| 3.72 MB | 1.51 MB | 504 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-4.1.1.js
> https://cdn.plot.ly/plotly-cartesian-4.1.2.js

> https://cdn.plot.ly/plotly-cartesian-4.1.1.min.js
> https://cdn.plot.ly/plotly-cartesian-4.1.2.min.js


#### npm packages
Expand All @@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.39 MB | 1.4 MB | 467 kB |
| 3.4 MB | 1.41 MB | 470 kB |

#### CDN links
> https://cdn.plot.ly/plotly-geo-4.1.1.js
> https://cdn.plot.ly/plotly-geo-4.1.2.js

> https://cdn.plot.ly/plotly-geo-4.1.1.min.js
> https://cdn.plot.ly/plotly-geo-4.1.2.min.js


#### npm packages
Expand All @@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.44 MB | 1.75 MB | 562 kB |
| 4.46 MB | 1.76 MB | 564 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-4.1.1.js
> https://cdn.plot.ly/plotly-gl3d-4.1.2.js

> https://cdn.plot.ly/plotly-gl3d-4.1.1.min.js
> https://cdn.plot.ly/plotly-gl3d-4.1.2.min.js


#### npm packages
Expand All @@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.68 MB | 1.49 MB | 498 kB |
| 3.7 MB | 1.49 MB | 502 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-4.1.1.js
> https://cdn.plot.ly/plotly-gl2d-4.1.2.js

> https://cdn.plot.ly/plotly-gl2d-4.1.1.min.js
> https://cdn.plot.ly/plotly-gl2d-4.1.2.min.js


#### npm packages
Expand All @@ -206,12 +206,12 @@ The `map` partial bundle contains trace modules `choroplethmap`, `densitymap`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 5.39 MB | 2.96 MB | 887 kB |
| 5.41 MB | 2.98 MB | 892 kB |

#### CDN links
> https://cdn.plot.ly/plotly-map-4.1.1.js
> https://cdn.plot.ly/plotly-map-4.1.2.js

> https://cdn.plot.ly/plotly-map-4.1.1.min.js
> https://cdn.plot.ly/plotly-map-4.1.2.min.js


#### npm packages
Expand All @@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.2 MB | 1.3 MB | 432 kB |
| 3.21 MB | 1.3 MB | 436 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-4.1.1.js
> https://cdn.plot.ly/plotly-finance-4.1.2.js

> https://cdn.plot.ly/plotly-finance-4.1.1.min.js
> https://cdn.plot.ly/plotly-finance-4.1.2.min.js


#### npm packages
Expand All @@ -252,12 +252,12 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 10.9 MB | 5.16 MB | 1.58 MB |
| 11 MB | 5.18 MB | 1.59 MB |

#### CDN links
> https://cdn.plot.ly/plotly-strict-4.1.1.js
> https://cdn.plot.ly/plotly-strict-4.1.2.js

> https://cdn.plot.ly/plotly-strict-4.1.1.min.js
> https://cdn.plot.ly/plotly-strict-4.1.2.min.js


#### npm packages
Expand Down
Loading
Loading