Skip to content

Commit 157c0f3

Browse files
authored
Merge pull request #7789 from plotly/release-3.5.1
Release 3.5.1
2 parents 2d21b8b + 754be09 commit 157c0f3

27 files changed

Lines changed: 269 additions & 248 deletions

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ To see all merged commits on the master branch that will be part of the next plo
99

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

12+
## [3.5.1] -- 2026-05-01
13+
14+
### Changed
15+
16+
- Reduce NPM bundle size by removing unneeded files [[#7746](https://github.com/plotly/plotly.js/pull/7746)]
17+
18+
### Fixed
19+
20+
- Fix bug where certain `axis.minallowed` values could cause axis to be reversed [[#7761](https://github.com/plotly/plotly.js/pull/7761)]
21+
22+
1223
## [3.5.0] -- 2026-04-03
1324

1425
### Added

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors:
99
- family-names: "Samimi"
1010
given-names: "Mojtaba"
1111
title: "Open source Plotly charting library"
12-
version: 3.5.0
12+
version: 3.5.1
1313
doi: 10.5281/zenodo.13964707
14-
date-released: 2026-04-03
14+
date-released: 2026-05-01
1515
url: "https://github.com/plotly/plotly.js"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
6262
6363
```html
6464
<head>
65-
<script src="https://cdn.plot.ly/plotly-3.5.0.min.js" charset="utf-8"></script>
65+
<script src="https://cdn.plot.ly/plotly-3.5.1.min.js" charset="utf-8"></script>
6666
</head>
6767
<body>
6868
<div id="gd"></div>
@@ -79,7 +79,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
7979
Alternatively, you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
8080
```html
8181
<script type="module">
82-
import "https://cdn.plot.ly/plotly-3.5.0.min.js"
82+
import "https://cdn.plot.ly/plotly-3.5.1.min.js"
8383
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
8484
</script>
8585
```
@@ -89,7 +89,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
8989
### Un-minified versions are also available on CDN
9090
While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
9191
```html
92-
<script src="https://cdn.plot.ly/plotly-3.5.0.js" charset="utf-8"></script>
92+
<script src="https://cdn.plot.ly/plotly-3.5.1.js" charset="utf-8"></script>
9393
```
9494

9595
> 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.

dist/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 10.7 MB | 4.6 MB | 1.4 MB | 11 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-3.5.0.js
49+
> https://cdn.plot.ly/plotly-3.5.1.js
5050
51-
> https://cdn.plot.ly/plotly-3.5.0.min.js
51+
> https://cdn.plot.ly/plotly-3.5.1.min.js
5252
5353

5454
#### npm packages
@@ -94,9 +94,9 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
9494
| 2.7 MB | 1.1 MB | 364.8 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-3.5.0.js
97+
> https://cdn.plot.ly/plotly-basic-3.5.1.js
9898
99-
> https://cdn.plot.ly/plotly-basic-3.5.0.min.js
99+
> https://cdn.plot.ly/plotly-basic-3.5.1.min.js
100100
101101

102102
#### npm packages
@@ -117,9 +117,9 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
117117
| 3.4 MB | 1.4 MB | 463 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-3.5.0.js
120+
> https://cdn.plot.ly/plotly-cartesian-3.5.1.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-3.5.0.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-3.5.1.min.js
123123
124124

125125
#### npm packages
@@ -140,9 +140,9 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
140140
| 3 MB | 1.2 MB | 415.2 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-3.5.0.js
143+
> https://cdn.plot.ly/plotly-geo-3.5.1.js
144144
145-
> https://cdn.plot.ly/plotly-geo-3.5.0.min.js
145+
> https://cdn.plot.ly/plotly-geo-3.5.1.min.js
146146
147147

148148
#### npm packages
@@ -163,9 +163,9 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
163163
| 4.2 MB | 1.6 MB | 527.4 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-3.5.0.js
166+
> https://cdn.plot.ly/plotly-gl3d-3.5.1.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-3.5.0.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-3.5.1.min.js
169169
170170

171171
#### npm packages
@@ -186,9 +186,9 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte
186186
| 3.8 MB | 1.5 MB | 521.2 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-3.5.0.js
189+
> https://cdn.plot.ly/plotly-gl2d-3.5.1.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-3.5.0.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-3.5.1.min.js
192192
193193

194194
#### npm packages
@@ -209,9 +209,9 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
209209
| 4.5 MB | 1.9 MB | 580.1 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-3.5.0.js
212+
> https://cdn.plot.ly/plotly-mapbox-3.5.1.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-3.5.0.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-3.5.1.min.js
215215
216216

217217
#### npm packages
@@ -232,9 +232,9 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
232232
| 2.9 MB | 1.2 MB | 398.5 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-3.5.0.js
235+
> https://cdn.plot.ly/plotly-finance-3.5.1.js
236236
237-
> https://cdn.plot.ly/plotly-finance-3.5.0.min.js
237+
> https://cdn.plot.ly/plotly-finance-3.5.1.min.js
238238
239239

240240
#### npm packages
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
255255
| 11.5 MB | 4.9 MB | 1.5 MB |
256256

257257
#### CDN links
258-
> https://cdn.plot.ly/plotly-strict-3.5.0.js
258+
> https://cdn.plot.ly/plotly-strict-3.5.1.js
259259
260-
> https://cdn.plot.ly/plotly-strict-3.5.0.min.js
260+
> https://cdn.plot.ly/plotly-strict-3.5.1.min.js
261261
262262

263263
#### npm packages

dist/plotly-basic.js

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v3.5.0
2+
* plotly.js (basic) v3.5.1
33
* Copyright 2012-2026, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -42,7 +42,7 @@ var Plotly = (() => {
4242
var require_version = __commonJS({
4343
"src/version.js"(exports) {
4444
"use strict";
45-
exports.version = "3.5.0";
45+
exports.version = "3.5.1";
4646
}
4747
});
4848

@@ -25552,20 +25552,21 @@ var Plotly = (() => {
2555225552
var axrev = rng[1] < rng[0];
2555325553
if (axrev) rng.reverse();
2555425554
var bounds = Lib.simpleMap([minallowed, maxallowed], ax.r2l);
25555-
if (minallowed !== void 0 && rng[0] < bounds[0]) range[axrev ? 1 : 0] = minallowed;
25556-
if (maxallowed !== void 0 && rng[1] > bounds[1]) range[axrev ? 0 : 1] = maxallowed;
25557-
if (range[0] === range[1]) {
25558-
var minL = ax.l2r(minallowed);
25559-
var maxL = ax.l2r(maxallowed);
25555+
if (minallowed !== void 0 && rng[0] < bounds[0]) {
25556+
range[axrev ? 1 : 0] = minallowed;
25557+
rng[0] = bounds[0];
25558+
}
25559+
if (maxallowed !== void 0 && rng[1] > bounds[1]) {
25560+
range[axrev ? 0 : 1] = maxallowed;
25561+
rng[1] = bounds[1];
25562+
}
25563+
if (rng[0] >= rng[1]) {
2556025564
if (minallowed !== void 0) {
25561-
var _max = minL + 1;
25562-
if (maxallowed !== void 0) _max = Math.min(_max, maxL);
25563-
range[axrev ? 1 : 0] = _max;
25564-
}
25565-
if (maxallowed !== void 0) {
25566-
var _min = maxL + 1;
25567-
if (minallowed !== void 0) _min = Math.max(_min, minL);
25568-
range[axrev ? 0 : 1] = _min;
25565+
var _max = bounds[0] + 1;
25566+
if (maxallowed !== void 0) _max = Math.min(_max, bounds[1]);
25567+
range[axrev ? 0 : 1] = ax.l2r(_max);
25568+
} else if (maxallowed !== void 0) {
25569+
range[axrev ? 1 : 0] = ax.l2r(bounds[1] - 1);
2556925570
}
2557025571
}
2557125572
};

dist/plotly-basic.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-cartesian.js

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v3.5.0
2+
* plotly.js (cartesian) v3.5.1
33
* Copyright 2012-2026, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -42,7 +42,7 @@ var Plotly = (() => {
4242
var require_version = __commonJS({
4343
"src/version.js"(exports) {
4444
"use strict";
45-
exports.version = "3.5.0";
45+
exports.version = "3.5.1";
4646
}
4747
});
4848

@@ -25552,20 +25552,21 @@ var Plotly = (() => {
2555225552
var axrev = rng[1] < rng[0];
2555325553
if (axrev) rng.reverse();
2555425554
var bounds = Lib.simpleMap([minallowed, maxallowed], ax.r2l);
25555-
if (minallowed !== void 0 && rng[0] < bounds[0]) range[axrev ? 1 : 0] = minallowed;
25556-
if (maxallowed !== void 0 && rng[1] > bounds[1]) range[axrev ? 0 : 1] = maxallowed;
25557-
if (range[0] === range[1]) {
25558-
var minL = ax.l2r(minallowed);
25559-
var maxL = ax.l2r(maxallowed);
25555+
if (minallowed !== void 0 && rng[0] < bounds[0]) {
25556+
range[axrev ? 1 : 0] = minallowed;
25557+
rng[0] = bounds[0];
25558+
}
25559+
if (maxallowed !== void 0 && rng[1] > bounds[1]) {
25560+
range[axrev ? 0 : 1] = maxallowed;
25561+
rng[1] = bounds[1];
25562+
}
25563+
if (rng[0] >= rng[1]) {
2556025564
if (minallowed !== void 0) {
25561-
var _max = minL + 1;
25562-
if (maxallowed !== void 0) _max = Math.min(_max, maxL);
25563-
range[axrev ? 1 : 0] = _max;
25564-
}
25565-
if (maxallowed !== void 0) {
25566-
var _min = maxL + 1;
25567-
if (minallowed !== void 0) _min = Math.max(_min, minL);
25568-
range[axrev ? 0 : 1] = _min;
25565+
var _max = bounds[0] + 1;
25566+
if (maxallowed !== void 0) _max = Math.min(_max, bounds[1]);
25567+
range[axrev ? 0 : 1] = ax.l2r(_max);
25568+
} else if (maxallowed !== void 0) {
25569+
range[axrev ? 1 : 0] = ax.l2r(bounds[1] - 1);
2556925570
}
2557025571
}
2557125572
};

dist/plotly-cartesian.min.js

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-finance.js

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v3.5.0
2+
* plotly.js (finance) v3.5.1
33
* Copyright 2012-2026, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -59,7 +59,7 @@ var Plotly = (() => {
5959
var require_version = __commonJS({
6060
"src/version.js"(exports) {
6161
"use strict";
62-
exports.version = "3.5.0";
62+
exports.version = "3.5.1";
6363
}
6464
});
6565

@@ -25569,20 +25569,21 @@ var Plotly = (() => {
2556925569
var axrev = rng[1] < rng[0];
2557025570
if (axrev) rng.reverse();
2557125571
var bounds = Lib.simpleMap([minallowed, maxallowed], ax.r2l);
25572-
if (minallowed !== void 0 && rng[0] < bounds[0]) range[axrev ? 1 : 0] = minallowed;
25573-
if (maxallowed !== void 0 && rng[1] > bounds[1]) range[axrev ? 0 : 1] = maxallowed;
25574-
if (range[0] === range[1]) {
25575-
var minL = ax.l2r(minallowed);
25576-
var maxL = ax.l2r(maxallowed);
25572+
if (minallowed !== void 0 && rng[0] < bounds[0]) {
25573+
range[axrev ? 1 : 0] = minallowed;
25574+
rng[0] = bounds[0];
25575+
}
25576+
if (maxallowed !== void 0 && rng[1] > bounds[1]) {
25577+
range[axrev ? 0 : 1] = maxallowed;
25578+
rng[1] = bounds[1];
25579+
}
25580+
if (rng[0] >= rng[1]) {
2557725581
if (minallowed !== void 0) {
25578-
var _max = minL + 1;
25579-
if (maxallowed !== void 0) _max = Math.min(_max, maxL);
25580-
range[axrev ? 1 : 0] = _max;
25581-
}
25582-
if (maxallowed !== void 0) {
25583-
var _min = maxL + 1;
25584-
if (minallowed !== void 0) _min = Math.max(_min, minL);
25585-
range[axrev ? 0 : 1] = _min;
25582+
var _max = bounds[0] + 1;
25583+
if (maxallowed !== void 0) _max = Math.min(_max, bounds[1]);
25584+
range[axrev ? 0 : 1] = ax.l2r(_max);
25585+
} else if (maxallowed !== void 0) {
25586+
range[axrev ? 1 : 0] = ax.l2r(bounds[1] - 1);
2558625587
}
2558725588
}
2558825589
};

dist/plotly-finance.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)