Skip to content

Commit c925d9d

Browse files
authored
Merge branch 'plotly:master' into issue-3973-overlap-hover
2 parents fbf8af8 + 1625db4 commit c925d9d

File tree

274 files changed

+5496
-5036
lines changed

Some content is hidden

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

274 files changed

+5496
-5036
lines changed

.circleci/config.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
working_directory: ~/plotly.js
5757
steps:
5858
- browser-tools/install-browser-tools: &browser-versions
59-
chrome-version: 93.0.4577.63
59+
chrome-version: 110.0.5481.100
6060
install-firefox: false
6161
install-geckodriver: false
6262
- attach_workspace:
@@ -93,7 +93,7 @@ jobs:
9393
working_directory: ~/plotly.js
9494
steps:
9595
- browser-tools/install-browser-tools: &browser-versions
96-
chrome-version: 93.0.4577.63
96+
chrome-version: 110.0.5481.100
9797
install-firefox: false
9898
install-geckodriver: false
9999
- attach_workspace:
@@ -113,7 +113,7 @@ jobs:
113113
working_directory: ~/plotly.js
114114
steps:
115115
- browser-tools/install-browser-tools: &browser-versions
116-
chrome-version: 93.0.4577.63
116+
chrome-version: 110.0.5481.100
117117
install-firefox: false
118118
install-geckodriver: false
119119
- attach_workspace:
@@ -132,7 +132,7 @@ jobs:
132132
working_directory: ~/plotly.js
133133
steps:
134134
- browser-tools/install-browser-tools: &browser-versions
135-
chrome-version: 93.0.4577.63
135+
chrome-version: 110.0.5481.100
136136
install-firefox: false
137137
install-geckodriver: false
138138
- attach_workspace:
@@ -151,7 +151,7 @@ jobs:
151151
working_directory: ~/plotly.js
152152
steps:
153153
- browser-tools/install-browser-tools: &browser-versions
154-
chrome-version: 93.0.4577.63
154+
chrome-version: 110.0.5481.100
155155
install-firefox: false
156156
install-geckodriver: false
157157
- attach_workspace:
@@ -400,6 +400,9 @@ jobs:
400400
- run:
401401
name: Test plot-schema.json diff - If failed, after (npm start) you could run (npm run schema && git add test/plot-schema.json && git commit -m "update plot-schema diff")
402402
command: diff --unified --color dist/plot-schema.json test/plot-schema.json
403+
- run:
404+
name: Test plotly.min.js import using amdefine
405+
command: npm run test-amdefine
403406
- run:
404407
name: Test plotly.min.js import using requirejs
405408
command: npm run test-requirejs

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ node_modules
33
dist
44
build
55

6+
tasks/test_amdefine.js
67
tasks/test_requirejs.js
78
test/jasmine/assets/jquery-1.8.3.min.js

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,39 @@ 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.18.2] -- 2023-02-15
13+
14+
### Fixed
15+
- Avoid attaching internal d3 object to the window (regression introduced in 2.17.0) [#6487](https://github.com/plotly/plotly.js/pull/6487)
16+
- Correct the order of lower fence and upper fence in the French locale (fr) [[#6476](https://github.com/plotly/plotly.js/pull/6476)],
17+
with thanks to @Gagaro for the contribution!
18+
- Correct formats in the Peruvian locale (es-pe) [[#6451](https://github.com/plotly/plotly.js/pull/6451)],
19+
with thanks to @andresrcs for the contribution!
20+
21+
22+
## [2.18.1] -- 2023-02-02
23+
24+
### Changed
25+
- Bump `d3-interpolate` and `d3-color` to v3 to address audit warnings [[#6463](https://github.com/plotly/plotly.js/pull/6463)]
26+
27+
### Fixed
28+
- Fix scaling of exports e.g. the SVG format by not adding `vector-effect` CSS to static plots [[#6445](https://github.com/plotly/plotly.js/pull/6445)]
29+
- Fix hover on IE (regression introduced in 2.5.0) [[#6466](https://github.com/plotly/plotly.js/pull/6466)]
30+
31+
32+
## [2.18.0] -- 2023-01-19
33+
34+
### Added
35+
- Add `sync` tickmode option [[#6356](https://github.com/plotly/plotly.js/pull/6356), [#6443](https://github.com/plotly/plotly.js/pull/6443)],
36+
with thanks to @filipesantiagoAM and @VictorBezak for the contribution!
37+
38+
### Changed
39+
- Improve detection of mobile & tablet devices for WebGL rendering by upgrading `is-mobile` [[#6432](https://github.com/plotly/plotly.js/pull/6432)]
40+
41+
### Fixed
42+
- Fix library's imported name using `requirejs` AMD loader (regression introduced in 2.17.0) [[#6440](https://github.com/plotly/plotly.js/pull/6440)]
43+
44+
1245
## [2.17.1] -- 2023-01-09
1346

1447
### Fixed

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.17.1.min.js"></script>
58+
<script src="https://cdn.plot.ly/plotly-2.18.2.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.17.1.min.js"
75+
import "https://cdn.plot.ly/plotly-2.18.2.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.17.1.js" charset="utf-8"></script>
85+
<script src="https://cdn.plot.ly/plotly-2.18.2.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.

devtools/test_dashboard/server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ devtoolsConfig.output = {
3737
filename: 'test_dashboard-bundle.js',
3838
library: {
3939
name: 'Tabs',
40-
type: 'umd',
41-
umdNamedDefine: true
40+
type: 'umd'
4241
}
4342
};
4443

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
| 8.1 MB | 3.4 MB | 1 MB | 8.4 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.17.1.js
49+
> https://cdn.plot.ly/plotly-2.18.2.js
5050
51-
> https://cdn.plot.ly/plotly-2.17.1.min.js
51+
> https://cdn.plot.ly/plotly-2.18.2.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.5 MB | 952.9 kB | 318.4 kB |
94+
| 2.5 MB | 953.4 kB | 318.7 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.17.1.js
97+
> https://cdn.plot.ly/plotly-basic-2.18.2.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.17.1.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.18.2.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.2 MB | 1.2 MB | 404.6 kB |
117+
| 3.2 MB | 1.2 MB | 404.9 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.17.1.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.18.2.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.17.1.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.18.2.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 | 362.4 kB |
140+
| 3.1 MB | 1.1 MB | 362.6 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.17.1.js
143+
> https://cdn.plot.ly/plotly-geo-2.18.2.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.17.1.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.18.2.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 | 482.7 kB |
163+
| 3.5 MB | 1.5 MB | 482.9 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-2.17.1.js
166+
> https://cdn.plot.ly/plotly-gl3d-2.18.2.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-2.17.1.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-2.18.2.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 | 589.6 kB |
186+
| 4.3 MB | 1.8 MB | 589.8 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.17.1.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.18.2.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.17.1.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.18.2.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 | 519.2 kB |
209+
| 4.3 MB | 1.7 MB | 519.5 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.17.1.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.18.2.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.17.1.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.18.2.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.7 MB | 1 MB | 346.8 kB |
232+
| 2.8 MB | 1 MB | 347.4 kB |
233233

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

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

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

263263
#### npm packages

dist/plot-schema.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11005,14 +11005,15 @@
1100511005
"valType": "number"
1100611006
},
1100711007
"tickmode": {
11008-
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided).",
11008+
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property.",
1100911009
"editType": "ticks",
1101011010
"impliedEdits": {},
1101111011
"valType": "enumerated",
1101211012
"values": [
1101311013
"auto",
1101411014
"linear",
11015-
"array"
11015+
"array",
11016+
"sync"
1101611017
]
1101711018
},
1101811019
"tickprefix": {
@@ -12013,14 +12014,15 @@
1201312014
"valType": "number"
1201412015
},
1201512016
"tickmode": {
12016-
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided).",
12017+
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property.",
1201712018
"editType": "ticks",
1201812019
"impliedEdits": {},
1201912020
"valType": "enumerated",
1202012021
"values": [
1202112022
"auto",
1202212023
"linear",
12023-
"array"
12024+
"array",
12025+
"sync"
1202412026
]
1202512027
},
1202612028
"tickprefix": {

0 commit comments

Comments
 (0)