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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ 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.

## [4.3.0] -- 2026-11-10

### Added
- Add `domainpad` to cartesian axes to reserve space in pixels inside the edges of `domain`, so the gap between subplots stays the same at all figure sizes [[#7965](https://github.com/plotly/plotly.js/pull/7965)], with thanks to @SharadhNaidu for the contribution!

### Fixed
- Fix `Plotly.react` and `Plotly.relayout` with a whole axis object ignoring a new range on an axis with `constrain: 'domain'` [[#8144](https://github.com/plotly/plotly.js/pull/8144)], with thanks to @Roshan1299 for the contribution!
- Apply `tickprefix` and `ticksuffix` to `tickvals` without explicit `ticktext` [[#8160](https://github.com/plotly/plotly.js/pull/8160)], with thanks to @davrens101 for the contribution!
- Fix potential prototype pollution from inherited properties in plot API calls [[#8168](https://github.com/plotly/plotly.js/pull/8168)]


## [4.2.0] -- 2026-10-29

### Added
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.2.0
version: 4.3.0
doi: 10.5281/zenodo.13964707
date-released: 2026-10-29
date-released: 2026-11-10
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.2.0.min.js" charset="utf-8"></script>
<script src="https://cdn.plot.ly/plotly-4.3.0.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.2.0.min.js"
import "https://cdn.plot.ly/plotly-4.3.0.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.2.0.js" charset="utf-8"></script>
<script src="https://cdn.plot.ly/plotly-4.3.0.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
48 changes: 24 additions & 24 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
| 10.2 MB | 4.84 MB | 1.49 MB | 10.5 MB |

#### CDN links
> https://cdn.plot.ly/plotly-4.2.0.js
> https://cdn.plot.ly/plotly-4.3.0.js

> https://cdn.plot.ly/plotly-4.2.0.min.js
> https://cdn.plot.ly/plotly-4.3.0.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.97 MB | 1.2 MB | 402 kB |
| 2.97 MB | 1.2 MB | 403 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-4.2.0.js
> https://cdn.plot.ly/plotly-basic-4.3.0.js

> https://cdn.plot.ly/plotly-basic-4.2.0.min.js
> https://cdn.plot.ly/plotly-basic-4.3.0.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.74 MB | 1.51 MB | 506 kB |
| 3.74 MB | 1.52 MB | 507 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-4.2.0.js
> https://cdn.plot.ly/plotly-cartesian-4.3.0.js

> https://cdn.plot.ly/plotly-cartesian-4.2.0.min.js
> https://cdn.plot.ly/plotly-cartesian-4.3.0.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.41 MB | 1.41 MB | 472 kB |
| 3.42 MB | 1.41 MB | 472 kB |

#### CDN links
> https://cdn.plot.ly/plotly-geo-4.2.0.js
> https://cdn.plot.ly/plotly-geo-4.3.0.js

> https://cdn.plot.ly/plotly-geo-4.2.0.min.js
> https://cdn.plot.ly/plotly-geo-4.3.0.min.js


#### npm packages
Expand All @@ -163,9 +163,9 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
| 4.47 MB | 1.76 MB | 566 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-4.2.0.js
> https://cdn.plot.ly/plotly-gl3d-4.3.0.js

> https://cdn.plot.ly/plotly-gl3d-4.2.0.min.js
> https://cdn.plot.ly/plotly-gl3d-4.3.0.min.js


#### npm packages
Expand All @@ -186,9 +186,9 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte
| 3.71 MB | 1.5 MB | 504 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-4.2.0.js
> https://cdn.plot.ly/plotly-gl2d-4.3.0.js

> https://cdn.plot.ly/plotly-gl2d-4.2.0.min.js
> https://cdn.plot.ly/plotly-gl2d-4.3.0.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.42 MB | 2.98 MB | 894 kB |
| 5.43 MB | 2.98 MB | 894 kB |

#### CDN links
> https://cdn.plot.ly/plotly-map-4.2.0.js
> https://cdn.plot.ly/plotly-map-4.3.0.js

> https://cdn.plot.ly/plotly-map-4.2.0.min.js
> https://cdn.plot.ly/plotly-map-4.3.0.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.22 MB | 1.31 MB | 437 kB |
| 3.22 MB | 1.31 MB | 438 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-4.2.0.js
> https://cdn.plot.ly/plotly-finance-4.3.0.js

> https://cdn.plot.ly/plotly-finance-4.2.0.min.js
> https://cdn.plot.ly/plotly-finance-4.3.0.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 |
|------|-----------------|------------------------|
| 11 MB | 5.18 MB | 1.59 MB |
| 11 MB | 5.19 MB | 1.59 MB |

#### CDN links
> https://cdn.plot.ly/plotly-strict-4.2.0.js
> https://cdn.plot.ly/plotly-strict-4.3.0.js

> https://cdn.plot.ly/plotly-strict-4.2.0.min.js
> https://cdn.plot.ly/plotly-strict-4.3.0.min.js


#### npm packages
Expand Down
66 changes: 66 additions & 0 deletions dist/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13378,6 +13378,39 @@
],
"valType": "info_array"
},
"domainpad": {
"bottom": {
"description": "Sets the space in pixels to reserve inside the bottom edge of `domain`. Applies to y axes only.",
"dflt": 0,
"editType": "plot",
"min": 0,
"valType": "number"
},
"description": "Sets the space in pixels to reserve inside the edges of `domain`. Because `domain` is a fraction of the plot area, the gap between subplots changes with the figure size. `domainpad` keeps the same size in pixels at all figure sizes, so it can hold content with a fixed size, such as a subplot title. x axes use `left` and `right`. y axes use `top` and `bottom`. If the padding needs more room than the domain has, the two pads shrink by the same factor, and the plot area keeps a length of at least 2 pixels. An axis that sets `overlaying` ignores its own `domainpad` and uses the `domainpad` of the axis it overlays, so that both axes share the same plot area.",
"editType": "plot",
"left": {
"description": "Sets the space in pixels to reserve inside the left edge of `domain`. Applies to x axes only.",
"dflt": 0,
"editType": "plot",
"min": 0,
"valType": "number"
},
"right": {
"description": "Sets the space in pixels to reserve inside the right edge of `domain`. Applies to x axes only.",
"dflt": 0,
"editType": "plot",
"min": 0,
"valType": "number"
},
"role": "object",
"top": {
"description": "Sets the space in pixels to reserve inside the top edge of `domain`. Applies to y axes only.",
"dflt": 0,
"editType": "plot",
"min": 0,
"valType": "number"
}
},
"dtick": {
"description": "Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to *log* and *date* axes. If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. *log* has several special values; *L<f>*, where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5). `tick0` is ignored for *D1* and *D2*. If the axis `type` is *date*, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. *date* also has special values *M<n>* gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*. To set ticks every 4 years, set `dtick` to *M48*",
"editType": "ticks",
Expand Down Expand Up @@ -14944,6 +14977,39 @@
],
"valType": "info_array"
},
"domainpad": {
"bottom": {
"description": "Sets the space in pixels to reserve inside the bottom edge of `domain`. Applies to y axes only.",
"dflt": 0,
"editType": "plot",
"min": 0,
"valType": "number"
},
"description": "Sets the space in pixels to reserve inside the edges of `domain`. Because `domain` is a fraction of the plot area, the gap between subplots changes with the figure size. `domainpad` keeps the same size in pixels at all figure sizes, so it can hold content with a fixed size, such as a subplot title. x axes use `left` and `right`. y axes use `top` and `bottom`. If the padding needs more room than the domain has, the two pads shrink by the same factor, and the plot area keeps a length of at least 2 pixels. An axis that sets `overlaying` ignores its own `domainpad` and uses the `domainpad` of the axis it overlays, so that both axes share the same plot area.",
"editType": "plot",
"left": {
"description": "Sets the space in pixels to reserve inside the left edge of `domain`. Applies to x axes only.",
"dflt": 0,
"editType": "plot",
"min": 0,
"valType": "number"
},
"right": {
"description": "Sets the space in pixels to reserve inside the right edge of `domain`. Applies to x axes only.",
"dflt": 0,
"editType": "plot",
"min": 0,
"valType": "number"
},
"role": "object",
"top": {
"description": "Sets the space in pixels to reserve inside the top edge of `domain`. Applies to y axes only.",
"dflt": 0,
"editType": "plot",
"min": 0,
"valType": "number"
}
},
"dtick": {
"description": "Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to *log* and *date* axes. If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. *log* has several special values; *L<f>*, where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5). `tick0` is ignored for *D1* and *D2*. If the axis `type` is *date*, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. *date* also has special values *M<n>* gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*. To set ticks every 4 years, set `dtick` to *M48*",
"editType": "ticks",
Expand Down
Loading
Loading