Skip to content

Commit 3aad5f9

Browse files
committed
3.1.0
1 parent 1ba3722 commit 3aad5f9

25 files changed

+548
-415
lines changed

dist/README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 10.6 MB | 4.5 MB | 1.4 MB | 10.9 MB |
4747

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

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

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

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

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

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

138138
| Raw size | Minified size | Minified + gzip size |
139139
|------|-----------------|------------------------|
140-
| 2.9 MB | 1.1 MB | 399.8 kB |
140+
| 2.9 MB | 1.1 MB | 400.1 kB |
141141

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

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

161161
| Raw size | Minified size | Minified + gzip size |
162162
|------|-----------------|------------------------|
163-
| 4.1 MB | 1.5 MB | 514.6 kB |
163+
| 4.1 MB | 1.5 MB | 514.7 kB |
164164

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

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

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

194194
#### npm packages
@@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
206206

207207
| Raw size | Minified size | Minified + gzip size |
208208
|------|-----------------|------------------------|
209-
| 4.4 MB | 1.8 MB | 565.6 kB |
209+
| 4.4 MB | 1.8 MB | 565.7 kB |
210210

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

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

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

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

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

263263
#### npm packages

dist/plot-schema.json

Lines changed: 73 additions & 73 deletions
Large diffs are not rendered by default.

dist/plotly-basic.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v3.1.0-rc.1
2+
* plotly.js (basic) v3.1.0
33
* Copyright 2012-2025, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -38,7 +38,7 @@ var Plotly = (() => {
3838
var require_version = __commonJS({
3939
"src/version.js"(exports) {
4040
"use strict";
41-
exports.version = "3.1.0-rc.1";
41+
exports.version = "3.1.0";
4242
}
4343
});
4444

@@ -11469,7 +11469,8 @@ var Plotly = (() => {
1146911469
topojsonURL: {
1147011470
valType: "string",
1147111471
noBlank: true,
11472-
dflt: "https://cdn.plot.ly/"
11472+
// TODO: Switch the default back to 'https://cdn.plot.ly/' once we remove the legacy maps
11473+
dflt: "https://cdn.plot.ly/un/"
1147311474
},
1147411475
mapboxAccessToken: {
1147511476
valType: "string",
@@ -30374,7 +30375,7 @@ var Plotly = (() => {
3037430375
coerce("groupclick");
3037530376
coerce("xanchor", defaultXAnchor);
3037630377
coerce("yanchor", defaultYAnchor);
30377-
coerce("maxheight", isHorizontal ? 0.5 : 1);
30378+
coerce("maxheight");
3037830379
coerce("valign");
3037930380
Lib.noneOrAll(containerIn, containerOut, ["x", "y"]);
3038030381
var titleText = coerce("title.text");
@@ -31995,8 +31996,11 @@ var Plotly = (() => {
3199531996
var isAbovePlotArea = legendObj.y > 1 || legendObj.y === 1 && yanchor === "bottom";
3199631997
var traceGroupGap = legendObj.tracegroupgap;
3199731998
var legendGroupWidths = {};
31998-
var { maxheight, orientation, yref } = legendObj;
31999-
var heightToBeScaled = orientation === "v" && yref === "paper" ? gs.h : fullLayout.height;
31999+
const { orientation, yref } = legendObj;
32000+
let { maxheight } = legendObj;
32001+
const useFullLayoutHeight = isBelowPlotArea || isAbovePlotArea || orientation !== "v" || yref !== "paper";
32002+
maxheight || (maxheight = useFullLayoutHeight ? 0.5 : 1);
32003+
const heightToBeScaled = useFullLayoutHeight ? fullLayout.height : gs.h;
3200032004
legendObj._maxHeight = Math.max(maxheight > 1 ? maxheight : maxheight * heightToBeScaled, 30);
3200132005
var toggleRectWidth = 0;
3200232006
legendObj._width = 0;
@@ -33830,7 +33834,7 @@ var Plotly = (() => {
3383033834
for (var i = oldhoverdata.length - 1; i >= 0; i--) {
3383133835
var oldPt = oldhoverdata[i];
3383233836
var newPt = gd._hoverdata[i];
33833-
if (oldPt.curveNumber !== newPt.curveNumber || String(oldPt.pointNumber) !== String(newPt.pointNumber) || String(oldPt.pointNumbers) !== String(newPt.pointNumbers)) {
33837+
if (oldPt.curveNumber !== newPt.curveNumber || String(oldPt.pointNumber) !== String(newPt.pointNumber) || String(oldPt.pointNumbers) !== String(newPt.pointNumbers) || oldPt.binNumber !== newPt.binNumber) {
3383433838
return true;
3383533839
}
3383633840
}

dist/plotly-basic.min.js

Lines changed: 6 additions & 6 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: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v3.1.0-rc.1
2+
* plotly.js (cartesian) v3.1.0
33
* Copyright 2012-2025, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -38,7 +38,7 @@ var Plotly = (() => {
3838
var require_version = __commonJS({
3939
"src/version.js"(exports) {
4040
"use strict";
41-
exports.version = "3.1.0-rc.1";
41+
exports.version = "3.1.0";
4242
}
4343
});
4444

@@ -11469,7 +11469,8 @@ var Plotly = (() => {
1146911469
topojsonURL: {
1147011470
valType: "string",
1147111471
noBlank: true,
11472-
dflt: "https://cdn.plot.ly/"
11472+
// TODO: Switch the default back to 'https://cdn.plot.ly/' once we remove the legacy maps
11473+
dflt: "https://cdn.plot.ly/un/"
1147311474
},
1147411475
mapboxAccessToken: {
1147511476
valType: "string",
@@ -30374,7 +30375,7 @@ var Plotly = (() => {
3037430375
coerce("groupclick");
3037530376
coerce("xanchor", defaultXAnchor);
3037630377
coerce("yanchor", defaultYAnchor);
30377-
coerce("maxheight", isHorizontal ? 0.5 : 1);
30378+
coerce("maxheight");
3037830379
coerce("valign");
3037930380
Lib.noneOrAll(containerIn, containerOut, ["x", "y"]);
3038030381
var titleText = coerce("title.text");
@@ -31995,8 +31996,11 @@ var Plotly = (() => {
3199531996
var isAbovePlotArea = legendObj.y > 1 || legendObj.y === 1 && yanchor === "bottom";
3199631997
var traceGroupGap = legendObj.tracegroupgap;
3199731998
var legendGroupWidths = {};
31998-
var { maxheight, orientation, yref } = legendObj;
31999-
var heightToBeScaled = orientation === "v" && yref === "paper" ? gs.h : fullLayout.height;
31999+
const { orientation, yref } = legendObj;
32000+
let { maxheight } = legendObj;
32001+
const useFullLayoutHeight = isBelowPlotArea || isAbovePlotArea || orientation !== "v" || yref !== "paper";
32002+
maxheight || (maxheight = useFullLayoutHeight ? 0.5 : 1);
32003+
const heightToBeScaled = useFullLayoutHeight ? fullLayout.height : gs.h;
3200032004
legendObj._maxHeight = Math.max(maxheight > 1 ? maxheight : maxheight * heightToBeScaled, 30);
3200132005
var toggleRectWidth = 0;
3200232006
legendObj._width = 0;
@@ -33830,7 +33834,7 @@ var Plotly = (() => {
3383033834
for (var i = oldhoverdata.length - 1; i >= 0; i--) {
3383133835
var oldPt = oldhoverdata[i];
3383233836
var newPt = gd._hoverdata[i];
33833-
if (oldPt.curveNumber !== newPt.curveNumber || String(oldPt.pointNumber) !== String(newPt.pointNumber) || String(oldPt.pointNumbers) !== String(newPt.pointNumbers)) {
33837+
if (oldPt.curveNumber !== newPt.curveNumber || String(oldPt.pointNumber) !== String(newPt.pointNumber) || String(oldPt.pointNumbers) !== String(newPt.pointNumbers) || oldPt.binNumber !== newPt.binNumber) {
3383433838
return true;
3383533839
}
3383633840
}

dist/plotly-cartesian.min.js

Lines changed: 9 additions & 9 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: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v3.1.0-rc.1
2+
* plotly.js (finance) v3.1.0
33
* Copyright 2012-2025, 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.1.0-rc.1";
45+
exports.version = "3.1.0";
4646
}
4747
});
4848

@@ -11473,7 +11473,8 @@ var Plotly = (() => {
1147311473
topojsonURL: {
1147411474
valType: "string",
1147511475
noBlank: true,
11476-
dflt: "https://cdn.plot.ly/"
11476+
// TODO: Switch the default back to 'https://cdn.plot.ly/' once we remove the legacy maps
11477+
dflt: "https://cdn.plot.ly/un/"
1147711478
},
1147811479
mapboxAccessToken: {
1147911480
valType: "string",
@@ -30378,7 +30379,7 @@ var Plotly = (() => {
3037830379
coerce("groupclick");
3037930380
coerce("xanchor", defaultXAnchor);
3038030381
coerce("yanchor", defaultYAnchor);
30381-
coerce("maxheight", isHorizontal ? 0.5 : 1);
30382+
coerce("maxheight");
3038230383
coerce("valign");
3038330384
Lib.noneOrAll(containerIn, containerOut, ["x", "y"]);
3038430385
var titleText = coerce("title.text");
@@ -31999,8 +32000,11 @@ var Plotly = (() => {
3199932000
var isAbovePlotArea = legendObj.y > 1 || legendObj.y === 1 && yanchor === "bottom";
3200032001
var traceGroupGap = legendObj.tracegroupgap;
3200132002
var legendGroupWidths = {};
32002-
var { maxheight, orientation, yref } = legendObj;
32003-
var heightToBeScaled = orientation === "v" && yref === "paper" ? gs.h : fullLayout.height;
32003+
const { orientation, yref } = legendObj;
32004+
let { maxheight } = legendObj;
32005+
const useFullLayoutHeight = isBelowPlotArea || isAbovePlotArea || orientation !== "v" || yref !== "paper";
32006+
maxheight || (maxheight = useFullLayoutHeight ? 0.5 : 1);
32007+
const heightToBeScaled = useFullLayoutHeight ? fullLayout.height : gs.h;
3200432008
legendObj._maxHeight = Math.max(maxheight > 1 ? maxheight : maxheight * heightToBeScaled, 30);
3200532009
var toggleRectWidth = 0;
3200632010
legendObj._width = 0;
@@ -33834,7 +33838,7 @@ var Plotly = (() => {
3383433838
for (var i = oldhoverdata.length - 1; i >= 0; i--) {
3383533839
var oldPt = oldhoverdata[i];
3383633840
var newPt = gd._hoverdata[i];
33837-
if (oldPt.curveNumber !== newPt.curveNumber || String(oldPt.pointNumber) !== String(newPt.pointNumber) || String(oldPt.pointNumbers) !== String(newPt.pointNumbers)) {
33841+
if (oldPt.curveNumber !== newPt.curveNumber || String(oldPt.pointNumber) !== String(newPt.pointNumber) || String(oldPt.pointNumbers) !== String(newPt.pointNumbers) || oldPt.binNumber !== newPt.binNumber) {
3383833842
return true;
3383933843
}
3384033844
}

dist/plotly-finance.min.js

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

dist/plotly-geo-assets.js

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

0 commit comments

Comments
 (0)