plotly.js 2.6.4 → 2.8.2
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 +43 -0
- package/README.md +3 -3
- package/dist/README.md +26 -26
- package/dist/plot-schema.json +1015 -407
- package/dist/plotly-basic.js +534 -195
- package/dist/plotly-basic.min.js +4 -4
- package/dist/plotly-cartesian.js +1000 -343
- package/dist/plotly-cartesian.min.js +3 -3
- package/dist/plotly-finance.js +587 -199
- package/dist/plotly-finance.min.js +4 -4
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +523 -192
- package/dist/plotly-geo.min.js +4 -4
- package/dist/plotly-gl2d.js +542 -195
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +523 -192
- package/dist/plotly-gl3d.min.js +8 -8
- package/dist/plotly-mapbox.js +529 -195
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +1224 -564
- package/dist/plotly-strict.min.js +3 -3
- package/dist/plotly-with-meta.js +1316 -626
- package/dist/plotly.js +1278 -618
- package/dist/plotly.min.js +10 -10
- package/package.json +5 -5
- package/src/components/colorbar/attributes.js +29 -20
- package/src/components/colorbar/defaults.js +30 -8
- package/src/components/colorbar/draw.js +374 -128
- package/src/components/fx/hover.js +5 -2
- package/src/components/fx/hoverlabel_defaults.js +4 -2
- package/src/components/fx/layout_attributes.js +14 -4
- package/src/components/fx/layout_defaults.js +2 -0
- package/src/components/legend/attributes.js +7 -0
- package/src/components/legend/defaults.js +24 -7
- package/src/components/titles/index.js +8 -2
- package/src/plot_api/plot_api.js +38 -9
- package/src/plots/font_attributes.js +3 -0
- package/src/plots/layout_attributes.js +1 -0
- package/src/plots/mapbox/mapbox.js +6 -3
- package/src/plots/plots.js +7 -15
- package/src/traces/bar/plot.js +8 -2
- package/src/traces/contour/attributes.js +12 -0
- package/src/traces/contour/defaults.js +9 -1
- package/src/traces/heatmap/attributes.js +16 -0
- package/src/traces/heatmap/defaults.js +2 -0
- package/src/traces/heatmap/label_defaults.js +13 -0
- package/src/traces/heatmap/plot.js +205 -4
- package/src/traces/histogram/attributes.js +40 -0
- package/src/traces/histogram/calc.js +3 -2
- package/src/traces/histogram/defaults.js +11 -0
- package/src/traces/histogram2d/attributes.js +8 -0
- package/src/traces/histogram2d/defaults.js +4 -0
- package/src/traces/histogram2dcontour/attributes.js +3 -1
- package/src/traces/histogram2dcontour/defaults.js +8 -1
- package/src/traces/pie/calc.js +3 -1
- package/src/version.js +1 -1
- package/tasks/test_mock.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,49 @@ 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.8.2] -- 2021-12-20
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- Fix x/y `texttemplate` for `histogram`, `bar`, `funnel` and `waterfall` traces [[#6069](https://github.com/plotly/plotly.js/pull/6069)]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [2.8.1] -- 2021-12-15
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- Do not exceed layout font size when `textfont` is set to "auto" for `heatmap`, `histogram2d`, `contour` and
|
|
22
|
+
`histogram2dcontour` traces [[#6061](https://github.com/plotly/plotly.js/pull/6061)]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [2.8.0] -- 2021-12-10
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
- Introduce horizontal colorbars [[#6024](https://github.com/plotly/plotly.js/pull/6024)]
|
|
29
|
+
- Implement `legend.grouptitlefont` and `hoverlabel.grouptitlefont` [[#6040](https://github.com/plotly/plotly.js/pull/6040)]
|
|
30
|
+
- Add `texttemplate` and `textfont` to `heatmap` and `histogram2d` traces as well as
|
|
31
|
+
`histogram2dcontour` and `contour` traces when `coloring` is set "heatmap" [[#6028](https://github.com/plotly/plotly.js/pull/6028)]
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
- Fix to discard negative values from `pie` chart post-aggregation instead of during summation [[#6051](https://github.com/plotly/plotly.js/pull/6051)],
|
|
35
|
+
with thanks to @destiny-wu for the contribution!
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [2.7.0] -- 2021-12-02
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
- Add `texttemplate`, `textposition`, `textfont`, `textangle`,
|
|
42
|
+
`outsidetextfont`, `insidetextfont`, `insidetextanchor`,
|
|
43
|
+
`constraintext` and `cliponaxis` to `histogram` trace [[#6038](https://github.com/plotly/plotly.js/pull/6038)]
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
- Bump `probe-image-size` module to v7.2.2 [[#6036](https://github.com/plotly/plotly.js/pull/6036)]
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
- Fix mapbox derived coordinate for Retina displays [[#6039](https://github.com/plotly/plotly.js/pull/6039)]
|
|
50
|
+
- Fix interaction between `uirevision` and `autorange`. Because we push `autorange` and `range` back into `layout`,
|
|
51
|
+
there can be times it looks like we're applying GUI-driven changes on top of explicit autorange and other times
|
|
52
|
+
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)]
|
|
53
|
+
|
|
54
|
+
|
|
12
55
|
## [2.6.4] -- 2021-11-26
|
|
13
56
|
|
|
14
57
|
### 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.
|
|
58
|
+
<script src="https://cdn.plot.ly/plotly-2.8.2.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.
|
|
75
|
+
import "https://cdn.plot.ly/plotly-2.8.2.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.
|
|
85
|
+
<script src="https://cdn.plot.ly/plotly-2.8.2.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.
|
|
49
|
+
> https://cdn.plot.ly/plotly-2.8.2.js
|
|
50
50
|
|
|
51
|
-
> https://cdn.plot.ly/plotly-2.
|
|
51
|
+
> https://cdn.plot.ly/plotly-2.8.2.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 |
|
|
94
|
+
| 2.7 MB | 976.6 kB | 318.1 kB |
|
|
95
95
|
|
|
96
96
|
#### CDN links
|
|
97
|
-
> https://cdn.plot.ly/plotly-basic-2.
|
|
97
|
+
> https://cdn.plot.ly/plotly-basic-2.8.2.js
|
|
98
98
|
|
|
99
|
-
> https://cdn.plot.ly/plotly-basic-2.
|
|
99
|
+
> https://cdn.plot.ly/plotly-basic-2.8.2.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 |
|
|
117
|
+
| 3.3 MB | 1.2 MB | 391 kB |
|
|
118
118
|
|
|
119
119
|
#### CDN links
|
|
120
|
-
> https://cdn.plot.ly/plotly-cartesian-2.
|
|
120
|
+
> https://cdn.plot.ly/plotly-cartesian-2.8.2.js
|
|
121
121
|
|
|
122
|
-
> https://cdn.plot.ly/plotly-cartesian-2.
|
|
122
|
+
> https://cdn.plot.ly/plotly-cartesian-2.8.2.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 |
|
|
140
|
+
| 3 MB | 1.1 MB | 360.7 kB |
|
|
141
141
|
|
|
142
142
|
#### CDN links
|
|
143
|
-
> https://cdn.plot.ly/plotly-geo-2.
|
|
143
|
+
> https://cdn.plot.ly/plotly-geo-2.8.2.js
|
|
144
144
|
|
|
145
|
-
> https://cdn.plot.ly/plotly-geo-2.
|
|
145
|
+
> https://cdn.plot.ly/plotly-geo-2.8.2.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.
|
|
163
|
+
| 3.9 MB | 1.5 MB | 480.8 kB |
|
|
164
164
|
|
|
165
165
|
#### CDN links
|
|
166
|
-
> https://cdn.plot.ly/plotly-gl3d-2.
|
|
166
|
+
> https://cdn.plot.ly/plotly-gl3d-2.8.2.js
|
|
167
167
|
|
|
168
|
-
> https://cdn.plot.ly/plotly-gl3d-2.
|
|
168
|
+
> https://cdn.plot.ly/plotly-gl3d-2.8.2.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.
|
|
186
|
+
| 4.4 MB | 1.8 MB | 571.5 kB |
|
|
187
187
|
|
|
188
188
|
#### CDN links
|
|
189
|
-
> https://cdn.plot.ly/plotly-gl2d-2.
|
|
189
|
+
> https://cdn.plot.ly/plotly-gl2d-2.8.2.js
|
|
190
190
|
|
|
191
|
-
> https://cdn.plot.ly/plotly-gl2d-2.
|
|
191
|
+
> https://cdn.plot.ly/plotly-gl2d-2.8.2.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 |
|
|
209
|
+
| 4.3 MB | 1.7 MB | 514.9 kB |
|
|
210
210
|
|
|
211
211
|
#### CDN links
|
|
212
|
-
> https://cdn.plot.ly/plotly-mapbox-2.
|
|
212
|
+
> https://cdn.plot.ly/plotly-mapbox-2.8.2.js
|
|
213
213
|
|
|
214
|
-
> https://cdn.plot.ly/plotly-mapbox-2.
|
|
214
|
+
> https://cdn.plot.ly/plotly-mapbox-2.8.2.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 |
|
|
232
|
+
| 2.9 MB | 1.1 MB | 350.8 kB |
|
|
233
233
|
|
|
234
234
|
#### CDN links
|
|
235
|
-
> https://cdn.plot.ly/plotly-finance-2.
|
|
235
|
+
> https://cdn.plot.ly/plotly-finance-2.8.2.js
|
|
236
236
|
|
|
237
|
-
> https://cdn.plot.ly/plotly-finance-2.
|
|
237
|
+
> https://cdn.plot.ly/plotly-finance-2.8.2.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 |
|
|
255
|
+
| 7.7 MB | 3.2 MB | 958.6 kB |
|
|
256
256
|
|
|
257
257
|
#### CDN links
|
|
258
|
-
> https://cdn.plot.ly/plotly-strict-2.
|
|
258
|
+
> https://cdn.plot.ly/plotly-strict-2.8.2.js
|
|
259
259
|
|
|
260
|
-
> https://cdn.plot.ly/plotly-strict-2.
|
|
260
|
+
> https://cdn.plot.ly/plotly-strict-2.8.2.min.js
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
#### npm packages
|