Skip to content

Commit 350e247

Browse files
authored
Merge pull request #7635 from plotly/release-v3.3.0
Release v3.3.0
2 parents f0d7961 + ca49e89 commit 350e247

38 files changed

+407
-304
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ 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.0] -- 2025-11-14
13+
14+
### Added
15+
- Add `hovertemplate` for `candlestick` and `ohlc` traces [[#7619](https://github.com/plotly/plotly.js/pull/7619)]
16+
- Generate list of ISO codes for provided topojson maps, update info for some disputed territories [[#7622](https://github.com/plotly/plotly.js/pull/7622)]
17+
18+
### Changed
19+
- Turn off borders for plot container in CSS reset [[#7617](https://github.com/plotly/plotly.js/pull/7617)]
20+
21+
### Fixed
22+
- 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!
23+
24+
1225
## [3.2.0] -- 2025-10-30
1326

1427
### 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.2.0
12+
version: 3.3.0
1313
doi: 10.5281/zenodo.13964707
14-
date-released: 2025-10-30
14+
date-released: 2025-11-14
1515
url: "https://github.com/plotly/plotly.js"

README.md

Lines changed: 3 additions & 3 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.2.0.min.js" charset="utf-8"></script>
65+
<script src="https://cdn.plot.ly/plotly-3.3.0.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.2.0.min.js"
82+
import "https://cdn.plot.ly/plotly-3.3.0.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.2.0.js" charset="utf-8"></script>
92+
<script src="https://cdn.plot.ly/plotly-3.3.0.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.

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;",

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.7 MB | 4.6 MB | 1.4 MB | 11 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-3.2.0.js
49+
> https://cdn.plot.ly/plotly-3.3.0.js
5050
51-
> https://cdn.plot.ly/plotly-3.2.0.min.js
51+
> https://cdn.plot.ly/plotly-3.3.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 | 1.1 MB | 361.3 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-3.2.0.js
97+
> https://cdn.plot.ly/plotly-basic-3.3.0.js
9898
99-
> https://cdn.plot.ly/plotly-basic-3.2.0.min.js
99+
> https://cdn.plot.ly/plotly-basic-3.3.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 | 459.4 kB |
118118

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

125125
#### npm packages
@@ -140,9 +140,9 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
140140
| 2.9 MB | 1.2 MB | 411.1 kB |
141141

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

148148
#### npm packages
@@ -163,9 +163,9 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
163163
| 4.2 MB | 1.6 MB | 529.8 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-3.2.0.js
166+
> https://cdn.plot.ly/plotly-gl3d-3.3.0.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-3.2.0.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-3.3.0.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.9 kB |
186+
| 3.8 MB | 1.5 MB | 518 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-3.2.0.js
189+
> https://cdn.plot.ly/plotly-gl2d-3.3.0.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-3.2.0.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-3.3.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.5 MB | 1.8 MB | 576.5 kB |
209+
| 4.5 MB | 1.8 MB | 576.6 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-3.2.0.js
212+
> https://cdn.plot.ly/plotly-mapbox-3.3.0.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-3.2.0.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-3.3.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.9 MB | 1.2 MB | 395.5 kB |
232+
| 2.9 MB | 1.2 MB | 395.6 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-3.2.0.js
235+
> https://cdn.plot.ly/plotly-finance-3.3.0.js
236236
237-
> https://cdn.plot.ly/plotly-finance-3.2.0.min.js
237+
> https://cdn.plot.ly/plotly-finance-3.3.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.5 MB | 4.9 MB | 1.5 MB |
256256

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

263263
#### npm packages

dist/plot-schema.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22186,12 +22186,30 @@
2218622186
"valType": "boolean"
2218722187
},
2218822188
"split": {
22189-
"description": "Show hover information (open, close, high, low) in separate labels.",
22189+
"description": "Show hover information (open, close, high, low) in separate labels, rather than a single unified label. Default: *false*. When set to *true*, `hovertemplate` is ignored.",
2219022190
"dflt": false,
2219122191
"editType": "style",
2219222192
"valType": "boolean"
2219322193
}
2219422194
},
22195+
"hovertemplate": {
22196+
"arrayOk": true,
22197+
"description": "Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can't be found will be replaced with the specifier. For example, a template of \"data: %{x}, %{y}\" will result in a value of \"data: 1, %{y}\" if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, all attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `open`, `high`, `low` and `close`. Anything contained in tag `<extra>` is displayed in the secondary box, for example `<extra>%{fullData.name}</extra>`. To hide the secondary box completely, use an empty tag `<extra></extra>`.",
22198+
"dflt": "",
22199+
"editType": "none",
22200+
"valType": "string"
22201+
},
22202+
"hovertemplatefallback": {
22203+
"description": "Fallback string that's displayed when a variable referenced in a template is missing. If the boolean value 'false' is passed in, the specifier with the missing variable will be displayed.",
22204+
"dflt": "-",
22205+
"editType": "none",
22206+
"valType": "any"
22207+
},
22208+
"hovertemplatesrc": {
22209+
"description": "Sets the source reference on Chart Studio Cloud for `hovertemplate`.",
22210+
"editType": "none",
22211+
"valType": "string"
22212+
},
2219522213
"hovertext": {
2219622214
"arrayOk": true,
2219722215
"description": "Same as `text`.",
@@ -52888,12 +52906,30 @@
5288852906
"valType": "boolean"
5288952907
},
5289052908
"split": {
52891-
"description": "Show hover information (open, close, high, low) in separate labels.",
52909+
"description": "Show hover information (open, close, high, low) in separate labels, rather than a single unified label. Default: *false*. When set to *true*, `hovertemplate` is ignored.",
5289252910
"dflt": false,
5289352911
"editType": "style",
5289452912
"valType": "boolean"
5289552913
}
5289652914
},
52915+
"hovertemplate": {
52916+
"arrayOk": true,
52917+
"description": "Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can't be found will be replaced with the specifier. For example, a template of \"data: %{x}, %{y}\" will result in a value of \"data: 1, %{y}\" if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, all attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `open`, `high`, `low` and `close`. Anything contained in tag `<extra>` is displayed in the secondary box, for example `<extra>%{fullData.name}</extra>`. To hide the secondary box completely, use an empty tag `<extra></extra>`.",
52918+
"dflt": "",
52919+
"editType": "none",
52920+
"valType": "string"
52921+
},
52922+
"hovertemplatefallback": {
52923+
"description": "Fallback string that's displayed when a variable referenced in a template is missing. If the boolean value 'false' is passed in, the specifier with the missing variable will be displayed.",
52924+
"dflt": "-",
52925+
"editType": "none",
52926+
"valType": "any"
52927+
},
52928+
"hovertemplatesrc": {
52929+
"description": "Sets the source reference on Chart Studio Cloud for `hovertemplate`.",
52930+
"editType": "none",
52931+
"valType": "string"
52932+
},
5289752933
"hovertext": {
5289852934
"arrayOk": true,
5289952935
"description": "Same as `text`.",

dist/plotly-basic.js

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

dist/plotly-basic.min.js

Lines changed: 5 additions & 5 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: 10 additions & 7 deletions
Large diffs are not rendered by default.

dist/plotly-cartesian.min.js

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

0 commit comments

Comments
 (0)