Skip to content

Commit 4a571aa

Browse files
committed
Merge branch 'master' into multi-axis-reference-shapes
2 parents e5a71ad + 73aeab6 commit 4a571aa

230 files changed

Lines changed: 375284 additions & 371752 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,38 @@ 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.3.1] -- 2025-12-12
13+
14+
### Added
15+
- Add support for arrays for the pie properties `showlegend` and `legend`, so that these can be configured per slice. [[#7580](https://github.com/plotly/plotly.js/pull/7580)], with thanks to @my-tien for the contribution!
16+
17+
### Changed
18+
- Replace deprecated `String.substr()` with `String.slice()` [[#7662](https://github.com/plotly/plotly.js/pull/7662)], with thanks to @JBR-0100 for the contribution!
19+
20+
21+
## [3.3.0] -- 2025-11-14
22+
23+
### Added
24+
- Add `hovertemplate` for `candlestick` and `ohlc` traces [[#7619](https://github.com/plotly/plotly.js/pull/7619)]
25+
- Generate list of ISO codes for provided topojson maps, update info for some disputed territories [[#7622](https://github.com/plotly/plotly.js/pull/7622)]
26+
27+
### Changed
28+
- Turn off borders for plot container in CSS reset [[#7617](https://github.com/plotly/plotly.js/pull/7617)]
29+
30+
### Fixed
31+
- Fix KDE sampling precision in violin trace to eliminate floating-point drift and prevent density underrun/overrun [[#7581](https://github.com/plotly/plotly.js/pull/7581)], with thanks to @Koookadooo for the contribution!
32+
33+
34+
## [3.2.0] -- 2025-10-30
35+
36+
### Added
37+
- Add `hovertemplatefallback` and `texttemplatefallback` attributes [[#7577](https://github.com/plotly/plotly.js/pull/7577)]
38+
39+
### Fixed
40+
- Fix wrong scrolling behavior for legend [[#7067](https://github.com/plotly/plotly.js/pull/7067)], with thanks to @Lexachoc for the contribution!
41+
- Fix bug affecting use of `customdata` with typed arrays [[#7608](https://github.com/plotly/plotly.js/pull/7608)]
42+
43+
1244
## [3.1.2] -- 2025-10-16
1345

1446
### 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.1.2
12+
version: 3.3.1
1313
doi: 10.5281/zenodo.13964707
14-
date-released: 2025-10-16
14+
date-released: 2025-12-12
1515
url: "https://github.com/plotly/plotly.js"

README.md

Lines changed: 4 additions & 4 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.1.2.min.js" charset="utf-8"></script>
65+
<script src="https://cdn.plot.ly/plotly-3.3.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.1.2.min.js"
82+
import "https://cdn.plot.ly/plotly-3.3.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.1.2.js" charset="utf-8"></script>
92+
<script src="https://cdn.plot.ly/plotly-3.3.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.
@@ -150,6 +150,7 @@ Plotly.js is at the core of a large and dynamic ecosystem with many contributors
150150
|**Alex C. Johnson**| [@alexcjohnson](https://github.com/alexcjohnson) | Active, Maintainer |
151151
|**Emily Kellison-Linn** | [@emilykl](https://github.com/emilykl) | Active, Maintainer |
152152
|**Cameron DeCoster** | [@camdecoster](https://github.com/camdecoster) | Active, Maintainer |
153+
|**Mojtaba Samimi** | [@archmoj](https://github.com/archmoj) | Active, Community Contributor |
153154
|**My-Tien Nguyen**| [@my-tien](https://github.com/my-tien) | Active, Community Contributor |
154155
|**Birk Skyum**| [@birkskyum](https://github.com/birkskyum) | Active, Community Contributor |
155156
|**Étienne Tétreault-Pinard**| [@etpinard](https://github.com/etpinard) | Hall of Fame |
@@ -169,7 +170,6 @@ Plotly.js is at the core of a large and dynamic ecosystem with many contributors
169170
|**Hannah Ker** | [@hannahker](https://github.com/hannahker) | Hall of Fame |
170171
|**Chris Parmer**| [@chriddyp](https://github.com/chriddyp) | Hall of Fame |
171172
|**Alex Vados**| [@alexander-daniel](https://github.com/alexander-daniel) | Hall of Fame |
172-
|**Mojtaba Samimi** | [@archmoj](https://github.com/archmoj) | Hall of Fame |
173173

174174
---
175175
## Copyright and license

build/plotcss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var Lib = require('../src/lib');
44
var rules = {
5-
"X,X div": "direction:ltr;font-family:\"Open Sans\",verdana,arial,sans-serif;margin:0;padding:0;",
5+
"X,X div": "direction:ltr;font-family:\"Open Sans\",verdana,arial,sans-serif;margin:0;padding:0;border:0;",
66
"X input,X button": "font-family:\"Open Sans\",verdana,arial,sans-serif;",
77
"X input:focus,X button:focus": "outline:none;",
88
"X a": "text-decoration:none;",

devtools/dashboard_utilities.mjs

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,28 @@ export function createMocksList(files) {
4040
const jsonFiles = files.filter((file) => file.name.substr(-5) === '.json');
4141

4242
const mocksList = jsonFiles.map((file) => {
43-
const contents = JSON.parse(file.contents);
43+
try {
44+
const contents = JSON.parse(file.contents);
4445

45-
// get plot type keywords from mocks
46-
const types = contents.data
47-
.map((trace) => trace.type || 'scatter')
48-
.reduce((acc, type, i, arr) => (arr.lastIndexOf(type) === i ? [...acc, type] : acc), []);
46+
// get plot type keywords from mocks
47+
const types = contents.data
48+
.map((trace) => trace.type || 'scatter')
49+
.reduce((acc, type, i, arr) => (arr.lastIndexOf(type) === i ? [...acc, type] : acc), []);
4950

50-
const filename = file.name.split(path.sep).pop();
51+
const filename = file.name.split(path.sep).pop();
5152

52-
return {
53-
name: filename.slice(0, -5),
54-
file: filename,
55-
keywords: types.join(', ')
56-
};
53+
return {
54+
name: filename.slice(0, -5),
55+
file: filename,
56+
keywords: types.join(', ')
57+
};
58+
} catch (error) {
59+
if (error instanceof SyntaxError) {
60+
console.log(`Couldn't parse ${file.name} as JSON. Excluding from mocks list.`);
61+
} else {
62+
throw error;
63+
}
64+
}
5765
});
5866

5967
return mocksList;

dist/README.md

Lines changed: 25 additions & 25 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.1.2.js
49+
> https://cdn.plot.ly/plotly-3.3.1.js
5050
51-
> https://cdn.plot.ly/plotly-3.1.2.min.js
51+
> https://cdn.plot.ly/plotly-3.3.1.min.js
5252
5353

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

9292
| Raw size | Minified size | Minified + gzip size |
9393
|------|-----------------|------------------------|
94-
| 2.6 MB | 1.1 MB | 360.6 kB |
94+
| 2.6 MB | 1.1 MB | 361.5 kB |
9595

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

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

115115
| Raw size | Minified size | Minified + gzip size |
116116
|------|-----------------|------------------------|
117-
| 3.3 MB | 1.3 MB | 458.6 kB |
117+
| 3.4 MB | 1.3 MB | 459.7 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-3.1.2.js
120+
> https://cdn.plot.ly/plotly-cartesian-3.3.1.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-3.1.2.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-3.3.1.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.2 MB | 410.6 kB |
140+
| 2.9 MB | 1.2 MB | 411.3 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-3.1.2.js
143+
> https://cdn.plot.ly/plotly-geo-3.3.1.js
144144
145-
> https://cdn.plot.ly/plotly-geo-3.1.2.min.js
145+
> https://cdn.plot.ly/plotly-geo-3.3.1.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.2 MB | 1.6 MB | 525.1 kB |
163+
| 4.2 MB | 1.6 MB | 530 kB |
164164

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

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

184184
| Raw size | Minified size | Minified + gzip size |
185185
|------|-----------------|------------------------|
186-
| 3.8 MB | 1.5 MB | 517.3 kB |
186+
| 3.8 MB | 1.5 MB | 518.2 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-3.1.2.js
189+
> https://cdn.plot.ly/plotly-gl2d-3.3.1.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-3.1.2.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-3.3.1.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.5 MB | 1.8 MB | 575.9 kB |
209+
| 4.5 MB | 1.8 MB | 576.9 kB |
210210

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

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

230230
| Raw size | Minified size | Minified + gzip size |
231231
|------|-----------------|------------------------|
232-
| 2.9 MB | 1.2 MB | 394.8 kB |
232+
| 2.9 MB | 1.2 MB | 395.8 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-3.1.2.js
235+
> https://cdn.plot.ly/plotly-finance-3.3.1.js
236236
237-
> https://cdn.plot.ly/plotly-finance-3.1.2.min.js
237+
> https://cdn.plot.ly/plotly-finance-3.3.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.1.2.js
258+
> https://cdn.plot.ly/plotly-strict-3.3.1.js
259259
260-
> https://cdn.plot.ly/plotly-strict-3.1.2.min.js
260+
> https://cdn.plot.ly/plotly-strict-3.3.1.min.js
261261
262262

263263
#### npm packages

0 commit comments

Comments
 (0)