plotly.js 2.6.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,42 @@ To see all merged commits on the master branch that will be part of the next plo
9
9
 
10
10
  where X.Y.Z is the semver of most recent plotly.js release.
11
11
 
12
+ ## [2.7.0] -- 2021-12-02
13
+
14
+ ### Added
15
+ - Add `texttemplate`, `textposition`, `textfont`, `textangle`,
16
+ `outsidetextfont`, `insidetextfont`, `insidetextanchor`,
17
+ `constraintext` and `cliponaxis` to `histogram` trace [[#6038](https://github.com/plotly/plotly.js/pull/6038)]
18
+
19
+ ### Changed
20
+ - Bump `probe-image-size` module to v7.2.2 [[#6036](https://github.com/plotly/plotly.js/pull/6036)]
21
+
22
+ ### Fixed
23
+ - Fix mapbox derived coordinate for Retina displays [[#6039](https://github.com/plotly/plotly.js/pull/6039)]
24
+ - Fix interaction between `uirevision` and `autorange`. Because we push `autorange` and `range` back into `layout`,
25
+ there can be times it looks like we're applying GUI-driven changes on top of explicit autorange and other times
26
+ it's an implicit autorange, even though the user's intent was always implicit. This fix treats them as equivalent. [[#6046](https://github.com/plotly/plotly.js/pull/6046)]
27
+
28
+
29
+ ## [2.6.4] -- 2021-11-26
30
+
31
+ ### Fixed
32
+ - Avoid bar with text to jump when selected [[#6043](https://github.com/plotly/plotly.js/pull/6043)]
33
+
34
+
35
+ ## [2.6.3] -- 2021-11-12
36
+
37
+ ### Fixed
38
+ - Fix hover events in Shadow DOM [[#6021](https://github.com/plotly/plotly.js/pull/6021)],
39
+ with thanks to @SabineWren for the contribution!
40
+
41
+
42
+ ## [2.6.2] -- 2021-11-05
43
+
44
+ ### Fixed
45
+ - Fix loading issue in [orca](https://github.com/plotly/orca) (regression introduced in 2.6.0) [[#6011](https://github.com/plotly/plotly.js/pull/6011)]
46
+
47
+
12
48
  ## [2.6.1] -- 2021-11-03
13
49
 
14
50
  ### Fixed
package/README.md CHANGED
@@ -55,7 +55,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
55
55
 
56
56
  ```html
57
57
  <head>
58
- <script src="https://cdn.plot.ly/plotly-2.6.1.min.js"></script>
58
+ <script src="https://cdn.plot.ly/plotly-2.7.0.min.js"></script>
59
59
  </head>
60
60
  <body>
61
61
  <div id="gd"></div>
@@ -72,7 +72,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
72
72
  Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
73
73
  ```html
74
74
  <script type="module">
75
- import "https://cdn.plot.ly/plotly-2.6.1.min.js"
75
+ import "https://cdn.plot.ly/plotly-2.7.0.min.js"
76
76
  Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
77
77
  </script>
78
78
  ```
@@ -82,7 +82,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
82
82
  ### Un-minified versions are also available on CDN
83
83
  While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
84
84
  ```html
85
- <script src="https://cdn.plot.ly/plotly-2.6.1.js" charset="utf-8"></script>
85
+ <script src="https://cdn.plot.ly/plotly-2.7.0.js" charset="utf-8"></script>
86
86
  ```
87
87
 
88
88
  > 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.
package/dist/README.md CHANGED
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
46
46
  | 8.3 MB | 3.5 MB | 1 MB | 8.6 MB |
47
47
 
48
48
  #### CDN links
49
- > https://cdn.plot.ly/plotly-2.6.1.js
49
+ > https://cdn.plot.ly/plotly-2.7.0.js
50
50
 
51
- > https://cdn.plot.ly/plotly-2.6.1.min.js
51
+ > https://cdn.plot.ly/plotly-2.7.0.min.js
52
52
 
53
53
 
54
54
  #### npm packages
@@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
91
91
 
92
92
  | Raw size | Minified size | Minified + gzip size |
93
93
  |------|-----------------|------------------------|
94
- | 2.7 MB | 973.4 kB | 316.7 kB |
94
+ | 2.7 MB | 973.5 kB | 316.9 kB |
95
95
 
96
96
  #### CDN links
97
- > https://cdn.plot.ly/plotly-basic-2.6.1.js
97
+ > https://cdn.plot.ly/plotly-basic-2.7.0.js
98
98
 
99
- > https://cdn.plot.ly/plotly-basic-2.6.1.min.js
99
+ > https://cdn.plot.ly/plotly-basic-2.7.0.min.js
100
100
 
101
101
 
102
102
  #### npm packages
@@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
114
114
 
115
115
  | Raw size | Minified size | Minified + gzip size |
116
116
  |------|-----------------|------------------------|
117
- | 3.3 MB | 1.2 MB | 388.2 kB |
117
+ | 3.3 MB | 1.2 MB | 388.6 kB |
118
118
 
119
119
  #### CDN links
120
- > https://cdn.plot.ly/plotly-cartesian-2.6.1.js
120
+ > https://cdn.plot.ly/plotly-cartesian-2.7.0.js
121
121
 
122
- > https://cdn.plot.ly/plotly-cartesian-2.6.1.min.js
122
+ > https://cdn.plot.ly/plotly-cartesian-2.7.0.min.js
123
123
 
124
124
 
125
125
  #### npm packages
@@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
137
137
 
138
138
  | Raw size | Minified size | Minified + gzip size |
139
139
  |------|-----------------|------------------------|
140
- | 3 MB | 1.1 MB | 359.5 kB |
140
+ | 3 MB | 1.1 MB | 359.6 kB |
141
141
 
142
142
  #### CDN links
143
- > https://cdn.plot.ly/plotly-geo-2.6.1.js
143
+ > https://cdn.plot.ly/plotly-geo-2.7.0.js
144
144
 
145
- > https://cdn.plot.ly/plotly-geo-2.6.1.min.js
145
+ > https://cdn.plot.ly/plotly-geo-2.7.0.min.js
146
146
 
147
147
 
148
148
  #### npm packages
@@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
160
160
 
161
161
  | Raw size | Minified size | Minified + gzip size |
162
162
  |------|-----------------|------------------------|
163
- | 3.8 MB | 1.5 MB | 479.6 kB |
163
+ | 3.8 MB | 1.5 MB | 479.8 kB |
164
164
 
165
165
  #### CDN links
166
- > https://cdn.plot.ly/plotly-gl3d-2.6.1.js
166
+ > https://cdn.plot.ly/plotly-gl3d-2.7.0.js
167
167
 
168
- > https://cdn.plot.ly/plotly-gl3d-2.6.1.min.js
168
+ > https://cdn.plot.ly/plotly-gl3d-2.7.0.min.js
169
169
 
170
170
 
171
171
  #### npm packages
@@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
183
183
 
184
184
  | Raw size | Minified size | Minified + gzip size |
185
185
  |------|-----------------|------------------------|
186
- | 4.3 MB | 1.8 MB | 570.2 kB |
186
+ | 4.3 MB | 1.8 MB | 570.3 kB |
187
187
 
188
188
  #### CDN links
189
- > https://cdn.plot.ly/plotly-gl2d-2.6.1.js
189
+ > https://cdn.plot.ly/plotly-gl2d-2.7.0.js
190
190
 
191
- > https://cdn.plot.ly/plotly-gl2d-2.6.1.min.js
191
+ > https://cdn.plot.ly/plotly-gl2d-2.7.0.min.js
192
192
 
193
193
 
194
194
  #### npm packages
@@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
206
206
 
207
207
  | Raw size | Minified size | Minified + gzip size |
208
208
  |------|-----------------|------------------------|
209
- | 4.3 MB | 1.7 MB | 513.7 kB |
209
+ | 4.3 MB | 1.7 MB | 513.9 kB |
210
210
 
211
211
  #### CDN links
212
- > https://cdn.plot.ly/plotly-mapbox-2.6.1.js
212
+ > https://cdn.plot.ly/plotly-mapbox-2.7.0.js
213
213
 
214
- > https://cdn.plot.ly/plotly-mapbox-2.6.1.min.js
214
+ > https://cdn.plot.ly/plotly-mapbox-2.7.0.min.js
215
215
 
216
216
 
217
217
  #### npm packages
@@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
229
229
 
230
230
  | Raw size | Minified size | Minified + gzip size |
231
231
  |------|-----------------|------------------------|
232
- | 2.9 MB | 1.1 MB | 349.3 kB |
232
+ | 2.9 MB | 1.1 MB | 349.6 kB |
233
233
 
234
234
  #### CDN links
235
- > https://cdn.plot.ly/plotly-finance-2.6.1.js
235
+ > https://cdn.plot.ly/plotly-finance-2.7.0.js
236
236
 
237
- > https://cdn.plot.ly/plotly-finance-2.6.1.min.js
237
+ > https://cdn.plot.ly/plotly-finance-2.7.0.min.js
238
238
 
239
239
 
240
240
  #### npm packages
@@ -252,12 +252,12 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
252
252
 
253
253
  | Raw size | Minified size | Minified + gzip size |
254
254
  |------|-----------------|------------------------|
255
- | 7.7 MB | 3.2 MB | 956 kB |
255
+ | 7.7 MB | 3.2 MB | 956.3 kB |
256
256
 
257
257
  #### CDN links
258
- > https://cdn.plot.ly/plotly-strict-2.6.1.js
258
+ > https://cdn.plot.ly/plotly-strict-2.7.0.js
259
259
 
260
- > https://cdn.plot.ly/plotly-strict-2.6.1.min.js
260
+ > https://cdn.plot.ly/plotly-strict-2.7.0.min.js
261
261
 
262
262
 
263
263
  #### npm packages
@@ -27922,6 +27922,24 @@
27922
27922
  "editType": "calc",
27923
27923
  "valType": "string"
27924
27924
  },
27925
+ "cliponaxis": {
27926
+ "description": "Determines whether the text nodes are clipped about the subplot axes. To show the text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.",
27927
+ "dflt": true,
27928
+ "editType": "plot",
27929
+ "valType": "boolean"
27930
+ },
27931
+ "constraintext": {
27932
+ "description": "Constrain the size of text inside or outside a bar to be no larger than the bar itself.",
27933
+ "dflt": "both",
27934
+ "editType": "calc",
27935
+ "valType": "enumerated",
27936
+ "values": [
27937
+ "inside",
27938
+ "outside",
27939
+ "both",
27940
+ "none"
27941
+ ]
27942
+ },
27925
27943
  "cumulative": {
27926
27944
  "currentbin": {
27927
27945
  "description": "Only applies if cumulative is enabled. Sets whether the current bin is included, excluded, or has half of its value included in the current cumulative value. *include* is the default for compatibility with various other tools, however it introduces a half-bin bias to the results. *exclude* makes the opposite half-bin bias, and *half* removes it.",
@@ -28338,6 +28356,38 @@
28338
28356
  "editType": "none",
28339
28357
  "valType": "string"
28340
28358
  },
28359
+ "insidetextanchor": {
28360
+ "description": "Determines if texts are kept at center or start/end points in `textposition` *inside* mode.",
28361
+ "dflt": "end",
28362
+ "editType": "plot",
28363
+ "valType": "enumerated",
28364
+ "values": [
28365
+ "end",
28366
+ "middle",
28367
+ "start"
28368
+ ]
28369
+ },
28370
+ "insidetextfont": {
28371
+ "color": {
28372
+ "editType": "style",
28373
+ "valType": "color"
28374
+ },
28375
+ "description": "Sets the font used for `text` lying inside the bar.",
28376
+ "editType": "plot",
28377
+ "family": {
28378
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
28379
+ "editType": "plot",
28380
+ "noBlank": true,
28381
+ "strict": true,
28382
+ "valType": "string"
28383
+ },
28384
+ "role": "object",
28385
+ "size": {
28386
+ "editType": "plot",
28387
+ "min": 1,
28388
+ "valType": "number"
28389
+ }
28390
+ },
28341
28391
  "legendgroup": {
28342
28392
  "description": "Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items.",
28343
28393
  "dflt": "",
@@ -29182,6 +29232,27 @@
29182
29232
  "h"
29183
29233
  ]
29184
29234
  },
29235
+ "outsidetextfont": {
29236
+ "color": {
29237
+ "editType": "style",
29238
+ "valType": "color"
29239
+ },
29240
+ "description": "Sets the font used for `text` lying outside the bar.",
29241
+ "editType": "plot",
29242
+ "family": {
29243
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
29244
+ "editType": "plot",
29245
+ "noBlank": true,
29246
+ "strict": true,
29247
+ "valType": "string"
29248
+ },
29249
+ "role": "object",
29250
+ "size": {
29251
+ "editType": "plot",
29252
+ "min": 1,
29253
+ "valType": "number"
29254
+ }
29255
+ },
29185
29256
  "selected": {
29186
29257
  "editType": "style",
29187
29258
  "marker": {
@@ -29248,11 +29319,57 @@
29248
29319
  "editType": "calc",
29249
29320
  "valType": "string"
29250
29321
  },
29322
+ "textangle": {
29323
+ "description": "Sets the angle of the tick labels with respect to the bar. For example, a `tickangle` of -90 draws the tick labels vertically. With *auto* the texts may automatically be rotated to fit with the maximum size in bars.",
29324
+ "dflt": "auto",
29325
+ "editType": "plot",
29326
+ "valType": "angle"
29327
+ },
29328
+ "textfont": {
29329
+ "color": {
29330
+ "editType": "style",
29331
+ "valType": "color"
29332
+ },
29333
+ "description": "Sets the text font.",
29334
+ "editType": "plot",
29335
+ "family": {
29336
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
29337
+ "editType": "plot",
29338
+ "noBlank": true,
29339
+ "strict": true,
29340
+ "valType": "string"
29341
+ },
29342
+ "role": "object",
29343
+ "size": {
29344
+ "editType": "plot",
29345
+ "min": 1,
29346
+ "valType": "number"
29347
+ }
29348
+ },
29349
+ "textposition": {
29350
+ "arrayOk": false,
29351
+ "description": "Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears.",
29352
+ "dflt": "auto",
29353
+ "editType": "calc",
29354
+ "valType": "enumerated",
29355
+ "values": [
29356
+ "inside",
29357
+ "outside",
29358
+ "auto",
29359
+ "none"
29360
+ ]
29361
+ },
29251
29362
  "textsrc": {
29252
29363
  "description": "Sets the source reference on Chart Studio Cloud for `text`.",
29253
29364
  "editType": "none",
29254
29365
  "valType": "string"
29255
29366
  },
29367
+ "texttemplate": {
29368
+ "description": "Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". 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. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label` and `value`.",
29369
+ "dflt": "",
29370
+ "editType": "plot",
29371
+ "valType": "string"
29372
+ },
29256
29373
  "transforms": {
29257
29374
  "items": {
29258
29375
  "transform": {