Skip to content

Commit cef2785

Browse files
committed
Merge remote-tracking branch 'origin/master' into handle-coded-typed-arrays
2 parents c7ec94f + a5577d9 commit cef2785

File tree

257 files changed

+32467
-14529
lines changed

Some content is hidden

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

257 files changed

+32467
-14529
lines changed

CHANGELOG.md

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,139 @@ 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+
## [2.26.0] -- 2023-08-24
13+
14+
### Added
15+
- Add "min", "max", "min reversed" and "max reversed" autorange options and handle partial ranges (i.e. one end being null), add `autorangeoptions` (`clipmin`, `clipmax`, `minallowed`, `maxallowed`, `include`) as well as `minallowed` and `maxallowed` to cartesian, gl3d and radial axes [[#6547](https://github.com/plotly/plotly.js/pull/6547)]
16+
- Add [n]-sigma (std deviations) box plots as an alternative to quartiles [[#6697](https://github.com/plotly/plotly.js/issues/6697)], with thanks to @28raining for the contribution!
17+
- Add "top left" & "top center" side options to legend title [[#6711](https://github.com/plotly/plotly.js/pull/6711)], with thanks to @28raining for the contribution!
18+
- Add "false" option to `scaleanchor` to allow removing a constraint that is set by default [[#6712](https://github.com/plotly/plotly.js/pull/6712)], with thanks to @lvlte for the contribution!
19+
20+
21+
## [2.25.2] -- 2023-08-11
22+
23+
### Changed
24+
- Update Croatian translations in `hr` locale [[#6690](https://github.com/plotly/plotly.js/pull/6690)],
25+
with thanks to @Mkranj for the contribution!
26+
27+
### Fixed
28+
- Fix potential prototype pollution in plot API calls [[#6703](https://github.com/plotly/plotly.js/pull/6703), [6704](https://github.com/plotly/plotly.js/pull/6704)]
29+
30+
31+
## [2.25.1] -- 2023-08-02
32+
33+
### Fixed
34+
- Fix clearing legend using react (regression introduced in 2.25.0) [[#6695](https://github.com/plotly/plotly.js/pull/6695)]
35+
36+
37+
## [2.25.0] -- 2023-07-25
38+
39+
### Added
40+
- Add "Equal Earth" projection to geo subplots [[#6670](https://github.com/plotly/plotly.js/pull/6670)],
41+
with thanks to @apparebit for the contribution!
42+
- Add options to include legends for shapes and `newshape` [[#6653](https://github.com/plotly/plotly.js/pull/6653)]
43+
- Add Plotly.deleteActiveShape command [[#6679](https://github.com/plotly/plotly.js/pull/6679)]
44+
45+
### Fixed
46+
- Fix contour plot colorscale domain (take account of `zmin`, `zmax`, `cmin` and `cmax`) [[#6625](https://github.com/plotly/plotly.js/pull/6625)],
47+
with thanks to @lvlte for the contribution!
48+
- Fix text markers on non-mapbox styled maps [[#6652](https://github.com/plotly/plotly.js/pull/6652)],
49+
with thanks to @baurt for the contribution!
50+
- Fix unhide isolated traces in multi legend cases (regression introduced in 2.24.3) [[#6684](https://github.com/plotly/plotly.js/pull/6684)]
51+
52+
53+
## [2.24.3] -- 2023-07-05
54+
55+
### Fixed
56+
- Fix double clicking one item in a legend hides traces in other legends [[#6655](https://github.com/plotly/plotly.js/pull/6655)]
57+
- Fix double click pie slices when having multiple legends [[#6657](https://github.com/plotly/plotly.js/pull/6657)]
58+
- Fix per legend group and traceorder defaults when having multiple legends [[#6664](https://github.com/plotly/plotly.js/pull/6664)]
59+
60+
61+
## [2.24.2] -- 2023-06-09
62+
63+
### Fixed
64+
- Fix legend groups toggle (regression introduced in 2.22.0) [#6639]((https://github.com/plotly/plotly.js/issues/6639))
65+
- Fix waterfall `hovertemplate` not showing delta on totals similar [#6635]((https://github.com/plotly/plotly.js/issues/6635))
66+
67+
68+
## [2.24.1] -- 2023-06-07
69+
70+
### Fixed
71+
- Fix minimal copying of arrays in minExtend function
72+
(regression introduced in 2.24.0) [#6632]((https://github.com/plotly/plotly.js/issues/6632))
73+
74+
75+
## [2.24.0] -- 2023-06-06
76+
77+
### Added
78+
- add pattern to pie, funnelarea, sunburst, icicle and treemap traces [[#6601](https://github.com/plotly/plotly.js/pull/6601), [#6619](https://github.com/plotly/plotly.js/pull/6619), [#6622](https://github.com/plotly/plotly.js/pull/6622), [#6626](https://github.com/plotly/plotly.js/pull/6626), [#6627](https://github.com/plotly/plotly.js/pull/6627), [#6628](https://github.com/plotly/plotly.js/pull/6628), [#6629](https://github.com/plotly/plotly.js/pull/6629)],
79+
with thanks to @thierryVergult for the contribution!
80+
81+
### Fixed
82+
- Fix to prevent accessing undefined (hoverText.hoverLabels) in case all currently shown markers
83+
have hoverinfo: "none" (regression introduced in 2.6.0) [#6614]((https://github.com/plotly/plotly.js/issues/6614)),
84+
with thanks to @Domino987 for the contribution!
85+
- Fix to ensure only minimum margin spacing is added for container-referenced legends and colorbars [[#6616](https://github.com/plotly/plotly.js/pull/6616)]
86+
87+
88+
## [2.23.2] -- 2023-05-19
89+
90+
### Fixed
91+
- Fix text rendering while drawing new shapes [[#6608](https://github.com/plotly/plotly.js/pull/6608)],
92+
with thanks to the [Volkswagen](https://www.volkswagenag.com) Center of Excellence for Battery Systems for sponsoring development!
93+
94+
95+
## [2.23.1] -- 2023-05-16
96+
97+
### Fixed
98+
- Fix heatmap rendering on iOS and Safari when `zsmooth` is set to false [[#6605](https://github.com/plotly/plotly.js/pull/6605)], with thanks to @lvlte for the contribution!
99+
100+
101+
## [2.23.0] -- 2023-05-12
102+
103+
### Added
104+
- Add `legend.xref` and `legend.yref` to enable container-referenced positioning of legends [[#6589](https://github.com/plotly/plotly.js/pull/6589)], with thanks to [Gamma Technologies](https://www.gtisoft.com/) for sponsoring the related development.
105+
- Add `colorbar.xref` and `colorbar.yref` to enable container-referenced positioning of colorbars [[#6593](https://github.com/plotly/plotly.js/pull/6593)], with thanks to [Gamma Technologies](https://www.gtisoft.com/) for sponsoring the related development.
106+
107+
### Changed
108+
- Improve heatmap rendering performance when `zsmooth` is set to false [[#6574](https://github.com/plotly/plotly.js/pull/6574)], with thanks to @lvlte for the contribution!
109+
110+
111+
## [2.22.0] -- 2023-04-27
112+
113+
### Added
114+
- Add `legend` references to traces and `legend2`, `legend3`, etc. to layout,
115+
also add `visible` to legend i.e. to allow positioning multiple legends on a graph [[#6535](https://github.com/plotly/plotly.js/pull/6535)],
116+
this feature was anonymously sponsored: thank you to our sponsor!
117+
118+
### Changed
119+
- Update Norwegian translations in `no` locale [[#5410](https://github.com/plotly/plotly.js/pull/5410)],
120+
with thanks to @bjornol for the contribution!
121+
- Update Slovak translations and number formats in `sk` locale [[#6580](https://github.com/plotly/plotly.js/pull/6580)], with thanks to @Libco for the contribution!
122+
123+
### Fixed
124+
- Fix `plotly_click` in gl3d scenes to fire on touch devices [[#6563](https://github.com/plotly/plotly.js/pull/6563)],
125+
with thanks to @NickTominaga for the contribution!
126+
- Fix scatter3d when `marker.opacity` is set to zero [[#6581](https://github.com/plotly/plotly.js/pull/6581)], with thanks to @dmyronuk for the contribution!
127+
- Fix scattermapbox visibility restyle [[#6567](https://github.com/plotly/plotly.js/pull/6567)]
128+
129+
130+
## [2.21.0] -- 2023-04-17
131+
132+
### Added
133+
- Add `texttemplate` to shape.label for parametric shapes i.e. line, rect and circle [[#6527](https://github.com/plotly/plotly.js/pull/6527)],
134+
with thanks to the [Volkswagen](https://www.volkswagenag.com) Center of Excellence for Battery Systems for sponsoring development!
135+
- Add strict option to custom bundle command [[#6557](https://github.com/plotly/plotly.js/pull/6557)],
136+
with thanks to @CallumNZ for the contribution!
137+
138+
### Fixed
139+
- Fix dragging of legend when xanchor is not 'left' or yanchor is not 'top' [[#6528](https://github.com/plotly/plotly.js/pull/6528)],
140+
with thanks to @bmaranville for the contribution!
141+
- Fix heatmap rendering bug and improve performance when `zsmooth` is set to "fast" [[#6565](https://github.com/plotly/plotly.js/pull/6565)],
142+
with thanks to @lvlte for the contribution!
143+
144+
12145
## [2.20.0] -- 2023-03-15
13146

14147
### Added

CUSTOM_BUNDLE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ Or use `transforms none` to exclude them all.
3030
npm run custom-bundle -- --transforms none
3131
```
3232

33+
Use the `strict` option to use strict trace types where possible.
34+
```sh
35+
npm run custom-bundle -- --traces scatter,scattergl --strict
36+
```
37+
3338
Use the `out` option to change the bundle filename (default `custom`).
3439
The new bundle will be created in the `dist/` directory and named `plotly-<out>.min.js` or `plotly-<out>.js` if unminified.
3540
```sh

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
5555
5656
```html
5757
<head>
58-
<script src="https://cdn.plot.ly/plotly-2.20.0.min.js" charset="utf-8"></script>
58+
<script src="https://cdn.plot.ly/plotly-2.26.0.min.js" charset="utf-8"></script>
5959
</head>
6060
<body>
6161
<div id="gd"></div>
@@ -72,7 +72,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
7272
Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
7373
```html
7474
<script type="module">
75-
import "https://cdn.plot.ly/plotly-2.20.0.min.js"
75+
import "https://cdn.plot.ly/plotly-2.26.0.min.js"
7676
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
7777
</script>
7878
```
@@ -82,7 +82,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
8282
### Un-minified versions are also available on CDN
8383
While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
8484
```html
85-
<script src="https://cdn.plot.ly/plotly-2.20.0.js" charset="utf-8"></script>
85+
<script src="https://cdn.plot.ly/plotly-2.26.0.js" charset="utf-8"></script>
8686
```
8787

8888
> 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: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ The main plotly.js bundles weight in at:
4343

4444
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
4545
|-----------|---------------|----------------------|---------------------|
46-
| 8.1 MB | 3.4 MB | 1 MB | 8.4 MB |
46+
| 8.2 MB | 3.4 MB | 1 MB | 8.4 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.20.0.js
49+
> https://cdn.plot.ly/plotly-2.26.0.js
5050
51-
> https://cdn.plot.ly/plotly-2.20.0.min.js
51+
> https://cdn.plot.ly/plotly-2.26.0.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 | 961.3 kB | 321.3 kB |
94+
| 2.6 MB | 973.8 kB | 325.6 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.20.0.js
97+
> https://cdn.plot.ly/plotly-basic-2.26.0.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.20.0.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.26.0.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.2 MB | 407.1 kB |
117+
| 3.3 MB | 1.2 MB | 411.9 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.20.0.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.26.0.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.20.0.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.26.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-
| 3.1 MB | 1.1 MB | 365.2 kB |
140+
| 3.1 MB | 1.1 MB | 369.7 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.20.0.js
143+
> https://cdn.plot.ly/plotly-geo-2.26.0.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.20.0.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.26.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-
| 3.5 MB | 1.5 MB | 485.8 kB |
163+
| 3.6 MB | 1.5 MB | 490.2 kB |
164164

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

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

184184
| Raw size | Minified size | Minified + gzip size |
185185
|------|-----------------|------------------------|
186-
| 4.3 MB | 1.8 MB | 591.6 kB |
186+
| 4.4 MB | 1.8 MB | 596.1 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.20.0.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.26.0.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.20.0.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.26.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.3 MB | 1.7 MB | 522.1 kB |
209+
| 4.4 MB | 1.7 MB | 526.8 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.20.0.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.26.0.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.20.0.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.26.0.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.8 MB | 1 MB | 349.9 kB |
232+
| 2.8 MB | 1 MB | 354.4 kB |
233233

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

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

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

263263
#### npm packages

0 commit comments

Comments
 (0)