Skip to content

Commit 0e90950

Browse files
committed
Merge branch 'master' into bugfix-categorical-axis-tickson-boundaries-showgrid
2 parents cdd8853 + 5d467c7 commit 0e90950

File tree

103 files changed

+44788
-37651
lines changed

Some content is hidden

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

103 files changed

+44788
-37651
lines changed

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,28 @@ 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.29.0] -- 2024-02-01
13+
14+
### Added
15+
- Add `layout.barcornerradius` and `trace.marker.cornerradius` properties to support rounding the corners of bar traces [[#6761](https://github.com/ plotly/plotly.js/pull/6761)],
16+
with thanks to [Displayr](https://www.displayr.com) for sponsoring development!
17+
- Add `autotickangles` to cartesian and radial axes [[#6790](https://github.com/plotly/plotly.js/pull/6790)],
18+
with thanks to @my-tien for the contribution!
19+
20+
### Changed
21+
- Improve hover detection for for scatter plot fill tonext* [[#6865](https://github.com/plotly/plotly.js/pull/6865)],
22+
with thanks to @lumip for the contribution!
23+
- Improve rendering of heatmap bricks for log-scale axes [[#5991](https://github.com/plotly/plotly.js/issues/5991)],
24+
with thanks to @andrew-matteson for the contribution!
25+
- Adjust Sankey trace to allow user-defined link hover style override [[#6864](https://github.com/plotly/plotly.js/pull/6864)],
26+
with thanks to @TortoiseHam for the contribution!
27+
- Adjust 'decimal' and 'thousands' formats for Brazilian Portuguese locale file [[#6866](https://github.com/plotly/plotly.js/pull/6866)],
28+
with thanks to @pazuza for the contribution!
29+
30+
### Fixed
31+
- Fix modifying selections on traces on overlaying axes [[#6870](https://github.com/plotly/plotly.js/pull/6870)]
32+
33+
1234
## [2.28.0] -- 2024-01-05
1335

1436
### Added

README.md

+8-5
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.28.0.min.js" charset="utf-8"></script>
58+
<script src="https://cdn.plot.ly/plotly-2.29.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.28.0.min.js"
75+
import "https://cdn.plot.ly/plotly-2.29.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.28.0.js" charset="utf-8"></script>
85+
<script src="https://cdn.plot.ly/plotly-2.29.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.
@@ -143,9 +143,11 @@ Plotly.js is at the core of a large and dynamic ecosystem with many contributors
143143
|**Alex C. Johnson**| [@alexcjohnson](https://github.com/alexcjohnson) | | Active, Maintainer |
144144
|**Mojtaba Samimi** | [@archmoj](https://github.com/archmoj) | [@solarchvision](https://twitter.com/solarchvision) | Active, Maintainer |
145145
|**Antoine Roy-Gobeil** | [@antoinerg](https://github.com/antoinerg) | | Active, Maintainer |
146-
|**Nicolas Kruchten** | [@nicolaskruchten](https://github.com/nicolaskruchten) | [@nicolaskruchten](https://twitter.com/nicolaskruchten) | Active, Maintainer |
147-
|**Jon Mease** | [@jonmmease](https://github.com/jonmmease) | [@jonmmease](https://twitter.com/jonmmease) | Active |
146+
|**Emily Kellison-Linn** | [@emilykl](https://github.com/emilykl) | | Active, Maintainer |
147+
|**Hannah Ker** | [@hannahker](https://github.com/hannahker) | | Active, Maintainer |
148148
|**Étienne Tétreault-Pinard**| [@etpinard](https://github.com/etpinard) | [@etpinard](https://twitter.com/etpinard) | Hall of Fame |
149+
|**Nicolas Kruchten** | [@nicolaskruchten](https://github.com/nicolaskruchten) | [@nicolaskruchten](https://twitter.com/nicolaskruchten) | Hall of Fame |
150+
|**Jon Mease** | [@jonmmease](https://github.com/jonmmease) | [@jonmmease](https://twitter.com/jonmmease) | Hall of Fame |
149151
|**Mikola Lysenko**| [@mikolalysenko](https://github.com/mikolalysenko) | [@MikolaLysenko](https://twitter.com/MikolaLysenko) | Hall of Fame |
150152
|**Ricky Reusser**| [@rreusser](https://github.com/rreusser) | [@rickyreusser](https://twitter.com/rickyreusser) | Hall of Fame |
151153
|**Dmitry Yv.** | [@dy](https://github.com/dy) | [@DimaYv](https://twitter.com/dimayv)| Hall of Fame |
@@ -155,6 +157,7 @@ Plotly.js is at the core of a large and dynamic ecosystem with many contributors
155157
|**Miklós Tusz**| [@mdtusz](https://github.com/mdtusz) | [@mdtusz](https://twitter.com/mdtusz)| Hall of Fame |
156158
|**Chelsea Douglas**| [@cldougl](https://github.com/cldougl) | | Hall of Fame |
157159
|**Ben Postlethwaite**| [@bpostlethwaite](https://github.com/bpostlethwaite) | | Hall of Fame |
160+
|**Jack Parmer**| [@chriddyp](https://github.com/jackparmer) | | Hall of Fame |
158161
|**Chris Parmer**| [@chriddyp](https://github.com/chriddyp) | | Hall of Fame |
159162
|**Alex Vados**| [@alexander-daniel](https://github.com/alexander-daniel) | | Hall of Fame |
160163

dist/README.md

+27-27
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.2 MB | 3.4 MB | 1 MB | 8.5 MB |
46+
| 8.2 MB | 3.5 MB | 1 MB | 8.5 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.28.0.js
49+
> https://cdn.plot.ly/plotly-2.29.0.js
5050
51-
> https://cdn.plot.ly/plotly-2.28.0.min.js
51+
> https://cdn.plot.ly/plotly-2.29.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 | 978.6 kB | 327.6 kB |
94+
| 2.6 MB | 984.6 kB | 329.6 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.28.0.js
97+
> https://cdn.plot.ly/plotly-basic-2.29.0.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.28.0.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.29.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 | 413.9 kB |
117+
| 3.3 MB | 1.2 MB | 417 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.28.0.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.29.0.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.28.0.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.29.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 | 371.4 kB |
140+
| 3.1 MB | 1.1 MB | 372.3 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.28.0.js
143+
> https://cdn.plot.ly/plotly-geo-2.29.0.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.28.0.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.29.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.6 MB | 1.5 MB | 492.2 kB |
163+
| 3.6 MB | 1.5 MB | 493.1 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-2.28.0.js
166+
> https://cdn.plot.ly/plotly-gl3d-2.29.0.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-2.28.0.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-2.29.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.4 MB | 1.8 MB | 598 kB |
186+
| 4.4 MB | 1.9 MB | 599.6 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.28.0.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.29.0.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.28.0.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.29.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.7 MB | 530.3 kB |
209+
| 4.4 MB | 1.7 MB | 531.2 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.28.0.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.29.0.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.28.0.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.29.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 | 356.4 kB |
232+
| 2.8 MB | 1 MB | 358.7 kB |
233233

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

240240
#### npm packages
@@ -252,12 +252,12 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
252252

253253
| Raw size | Minified size | Minified + gzip size |
254254
|------|-----------------|------------------------|
255-
| 8.6 MB | 3.7 MB | 1.1 MB |
255+
| 8.7 MB | 3.8 MB | 1.1 MB |
256256

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

263263
#### npm packages

dist/plot-schema.json

+73
Original file line numberDiff line numberDiff line change
@@ -4464,6 +4464,20 @@
44644464
},
44654465
"role": "object"
44664466
},
4467+
"autotickangles": {
4468+
"description": "When `tickangle` is set to *auto*, it will be set to the first angle in this array that is large enough to prevent label overlap.",
4469+
"dflt": [
4470+
0,
4471+
30,
4472+
90
4473+
],
4474+
"editType": "ticks",
4475+
"freeLength": true,
4476+
"items": {
4477+
"valType": "angle"
4478+
},
4479+
"valType": "info_array"
4480+
},
44674481
"autotypenumbers": {
44684482
"description": "Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers.",
44694483
"dflt": "convert types",
@@ -10699,6 +10713,20 @@
1069910713
},
1070010714
"role": "object"
1070110715
},
10716+
"autotickangles": {
10717+
"description": "When `tickangle` is set to *auto*, it will be set to the first angle in this array that is large enough to prevent label overlap.",
10718+
"dflt": [
10719+
0,
10720+
30,
10721+
90
10722+
],
10723+
"editType": "ticks",
10724+
"freeLength": true,
10725+
"items": {
10726+
"valType": "angle"
10727+
},
10728+
"valType": "info_array"
10729+
},
1070210730
"autotypenumbers": {
1070310731
"description": "Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers.",
1070410732
"dflt": "convert types",
@@ -12039,6 +12067,20 @@
1203912067
"editType": "plot",
1204012068
"valType": "boolean"
1204112069
},
12070+
"autotickangles": {
12071+
"description": "When `tickangle` is set to *auto*, it will be set to the first angle in this array that is large enough to prevent label overlap.",
12072+
"dflt": [
12073+
0,
12074+
30,
12075+
90
12076+
],
12077+
"editType": "ticks",
12078+
"freeLength": true,
12079+
"items": {
12080+
"valType": "angle"
12081+
},
12082+
"valType": "info_array"
12083+
},
1204212084
"autotypenumbers": {
1204312085
"description": "Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers.",
1204412086
"dflt": "convert types",
@@ -14113,6 +14155,11 @@
1411314155
"editType": "none",
1411414156
"valType": "string"
1411514157
},
14158+
"cornerradius": {
14159+
"description": "Sets the rounding of corners. May be an integer number of pixels, or a percentage of bar width (as a string ending in %). Defaults to `layout.barcornerradius`. In stack or relative barmode, the first trace to set cornerradius is used for the whole stack.",
14160+
"editType": "calc",
14161+
"valType": "any"
14162+
},
1411614163
"editType": "calc",
1411714164
"line": {
1411814165
"autocolorscale": {
@@ -14800,6 +14847,11 @@
1480014847
"zoomScale"
1480114848
],
1480214849
"layoutAttributes": {
14850+
"barcornerradius": {
14851+
"description": "Sets the rounding of bar corners. May be an integer number of pixels, or a percentage of bar width (as a string ending in %).",
14852+
"editType": "calc",
14853+
"valType": "any"
14854+
},
1480314855
"bargap": {
1480414856
"description": "Sets the gap (in plot fraction) between bars of adjacent location coordinates.",
1480514857
"editType": "calc",
@@ -31469,6 +31521,11 @@
3146931521
"editType": "none",
3147031522
"valType": "string"
3147131523
},
31524+
"cornerradius": {
31525+
"description": "Sets the rounding of corners. May be an integer number of pixels, or a percentage of bar width (as a string ending in %). Defaults to `layout.barcornerradius`. In stack or relative barmode, the first trace to set cornerradius is used for the whole stack.",
31526+
"editType": "calc",
31527+
"valType": "any"
31528+
},
3147231529
"editType": "calc",
3147331530
"line": {
3147431531
"autocolorscale": {
@@ -32074,6 +32131,11 @@
3207432131
"showLegend"
3207532132
],
3207632133
"layoutAttributes": {
32134+
"barcornerradius": {
32135+
"description": "Sets the rounding of bar corners. May be an integer number of pixels, or a percentage of bar width (as a string ending in %).",
32136+
"editType": "calc",
32137+
"valType": "any"
32138+
},
3207732139
"bargap": {
3207832140
"description": "Sets the gap (in plot fraction) between bars of adjacent location coordinates.",
3207932141
"editType": "calc",
@@ -44148,6 +44210,17 @@
4414844210
},
4414944211
"description": "The links of the Sankey plot.",
4415044212
"editType": "calc",
44213+
"hovercolor": {
44214+
"arrayOk": true,
44215+
"description": "Sets the `link` hover color. It can be a single value, or an array for specifying hover colors for each `link`. If `link.hovercolor` is omitted, then by default, links will become slightly more opaque when hovered over.",
44216+
"editType": "calc",
44217+
"valType": "color"
44218+
},
44219+
"hovercolorsrc": {
44220+
"description": "Sets the source reference on Chart Studio Cloud for `hovercolor`.",
44221+
"editType": "none",
44222+
"valType": "string"
44223+
},
4415144224
"hoverinfo": {
4415244225
"description": "Determines which trace information appear when hovering links. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired.",
4415344226
"dflt": "all",

0 commit comments

Comments
 (0)