@@ -42,7 +42,7 @@ object. This property must be set before the plotly.js script tag, for example:
42
42
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
43
43
Many other localizations are available - here is an example using Swiss-German (de-CH),
44
44
see the contents of this directory for the full list.
45
- They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.58.4 .js
45
+ They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest-v2 .js OR https://cdn.plot.ly/plotly-locale-de-ch-2.0.0-rc.0 .js
46
46
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
47
47
48
48
* After* the plotly.js script tag, add:
@@ -65,12 +65,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
65
65
66
66
It be can imported as minified javascript
67
67
- using dist file ` dist/plotly.min.js `
68
- - using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.58.4 .min.js
68
+ - using CDN URL https://cdn.plot.ly/plotly-latest-v2 .min.js OR https://cdn.plot.ly/plotly-2.0.0-rc.0 .min.js
69
69
70
70
or as raw javascript:
71
71
- using the ` plotly.js-dist ` npm package (starting in ` v1.39.0 ` )
72
72
- using dist file ` dist/plotly.js `
73
- - using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.58.4 .js
73
+ - using CDN URL https://cdn.plot.ly/plotly-latest-v2 .js OR https://cdn.plot.ly/plotly-2.0.0-rc.0 .js
74
74
- using CommonJS with ` require('plotly.js') `
75
75
76
76
If you would like to have access to the attribute meta information (including attribute descriptions as on the [ schema reference page] ( https://plotly.com/javascript/reference/ ) ), use dist file ` dist/plotly-with-meta.js `
@@ -79,7 +79,7 @@ The main plotly.js bundle weights in at:
79
79
80
80
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
81
81
| -----------| ---------------| ----------------------| ---------------------|
82
- | 7.2 MB | 3.3 MB | 1007 .2 kB | 7.5 MB |
82
+ | 7.8 MB | 3.3 MB | 1009 .2 kB | 8.1 MB |
83
83
84
84
## Partial bundles
85
85
@@ -92,11 +92,16 @@ Starting in `v1.15.0`, plotly.js also ships with several _partial_ bundles:
92
92
- [ gl2d] ( #plotlyjs-gl2d )
93
93
- [ mapbox] ( #plotlyjs-mapbox )
94
94
- [ finance] ( #plotlyjs-finance )
95
+ - [ strict] ( #plotlyjs-strict )
95
96
96
97
Starting in ` v1.39.0 ` , each plotly.js partial bundle has a corresponding npm package with no dependencies.
97
98
98
99
Starting in ` v1.50.0 ` , the minified version of each partial bundle is also published to npm in a separate "dist min" package.
99
100
101
+ Starting in ` v2.0.0 ` , the strict partial bundle includes everything except the traces that require function constructors.
102
+ Over time we hope to include more of the remaining trace types here, after which we intend to work on other strict CSP issues
103
+ such as inline CSS that we may not be able to include in the main bundle.
104
+
100
105
### plotly.js basic
101
106
102
107
The ` basic ` partial bundle contains trace modules ` scatter ` , ` bar ` and ` pie ` .
@@ -105,16 +110,16 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
105
110
106
111
| Raw size | Minified size | Minified + gzip size |
107
112
| ------| -----------------| ------------------------|
108
- | 2.6 MB | 937.1 kB | 307 .9 kB |
113
+ | 2.7 MB | 993.8 kB | 322 .9 kB |
109
114
110
115
#### CDN links
111
116
112
117
| Flavor | URL |
113
118
| ------ | --- |
114
- | Latest | https://cdn.plot.ly/plotly-basic-latest.js |
115
- | Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
116
- | Tagged | https://cdn.plot.ly/plotly-basic-1.58.4 .js |
117
- | Tagged minified | https://cdn.plot.ly/plotly-basic-1.58.4 .min.js |
119
+ | Latest | https://cdn.plot.ly/plotly-basic-latest-v2 .js |
120
+ | Latest minified | https://cdn.plot.ly/plotly-basic-latest-v2 .min.js |
121
+ | Tagged | https://cdn.plot.ly/plotly-basic-2.0.0-rc.0 .js |
122
+ | Tagged minified | https://cdn.plot.ly/plotly-basic-2.0.0-rc.0 .min.js |
118
123
119
124
#### npm package (starting in ` v1.39.0 ` )
120
125
@@ -158,16 +163,16 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
158
163
159
164
| Raw size | Minified size | Minified + gzip size |
160
165
| ------| -----------------| ------------------------|
161
- | 3 MB | 1.1 MB | 361.6 kB |
166
+ | 3.3 MB | 1.2 MB | 391.7 kB |
162
167
163
168
#### CDN links
164
169
165
170
| Flavor | URL |
166
171
| ------ | --- |
167
- | Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
168
- | Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
169
- | Tagged | https://cdn.plot.ly/plotly-cartesian-1.58.4 .js |
170
- | Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.58.4 .min.js |
172
+ | Latest | https://cdn.plot.ly/plotly-cartesian-latest-v2 .js |
173
+ | Latest minified | https://cdn.plot.ly/plotly-cartesian-latest-v2 .min.js |
174
+ | Tagged | https://cdn.plot.ly/plotly-cartesian-2.0.0-rc.0 .js |
175
+ | Tagged minified | https://cdn.plot.ly/plotly-cartesian-2.0.0-rc.0 .min.js |
171
176
172
177
#### npm package (starting in ` v1.39.0 ` )
173
178
@@ -211,16 +216,16 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
211
216
212
217
| Raw size | Minified size | Minified + gzip size |
213
218
| ------| -----------------| ------------------------|
214
- | 2.7 MB | 963.7 kB | 317.3 kB |
219
+ | 2.8 MB | 1020.4 kB | 332.9 kB |
215
220
216
221
#### CDN links
217
222
218
223
| Flavor | URL |
219
224
| ------ | --- |
220
- | Latest | https://cdn.plot.ly/plotly-geo-latest.js |
221
- | Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
222
- | Tagged | https://cdn.plot.ly/plotly-geo-1.58.4 .js |
223
- | Tagged minified | https://cdn.plot.ly/plotly-geo-1.58.4 .min.js |
225
+ | Latest | https://cdn.plot.ly/plotly-geo-latest-v2 .js |
226
+ | Latest minified | https://cdn.plot.ly/plotly-geo-latest-v2 .min.js |
227
+ | Tagged | https://cdn.plot.ly/plotly-geo-2.0.0-rc.0 .js |
228
+ | Tagged minified | https://cdn.plot.ly/plotly-geo-2.0.0-rc.0 .min.js |
224
229
225
230
#### npm package (starting in ` v1.39.0 ` )
226
231
@@ -264,16 +269,16 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
264
269
265
270
| Raw size | Minified size | Minified + gzip size |
266
271
| ------| -----------------| ------------------------|
267
- | 3.7 MB | 1.4 MB | 463.2 kB |
272
+ | 3.8 MB | 1.5 MB | 478.3 kB |
268
273
269
274
#### CDN links
270
275
271
276
| Flavor | URL |
272
277
| ------ | --- |
273
- | Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
274
- | Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
275
- | Tagged | https://cdn.plot.ly/plotly-gl3d-1.58.4 .js |
276
- | Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.58.4 .min.js |
278
+ | Latest | https://cdn.plot.ly/plotly-gl3d-latest-v2 .js |
279
+ | Latest minified | https://cdn.plot.ly/plotly-gl3d-latest-v2 .min.js |
280
+ | Tagged | https://cdn.plot.ly/plotly-gl3d-2.0.0-rc.0 .js |
281
+ | Tagged minified | https://cdn.plot.ly/plotly-gl3d-2.0.0-rc.0 .min.js |
277
282
278
283
#### npm package (starting in ` v1.39.0 ` )
279
284
@@ -311,22 +316,22 @@ npm install plotly.js-gl3d-dist-min
311
316
312
317
### plotly.js gl2d
313
318
314
- The ` gl2d ` partial bundle contains trace modules ` scatter ` , ` scattergl ` , ` splom ` , ` pointcloud ` , ` heatmapgl ` , ` contourgl ` and ` parcoords ` .
319
+ The ` gl2d ` partial bundle contains trace modules ` scatter ` , ` scattergl ` , ` splom ` , ` pointcloud ` , ` heatmapgl ` and ` parcoords ` .
315
320
316
321
#### Stats
317
322
318
323
| Raw size | Minified size | Minified + gzip size |
319
324
| ------| -----------------| ------------------------|
320
- | 3.7 MB | 1.5 MB | 488.6 kB |
325
+ | 3.8 MB | 1.5 MB | 498.9 kB |
321
326
322
327
#### CDN links
323
328
324
329
| Flavor | URL |
325
330
| ------ | --- |
326
- | Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
327
- | Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
328
- | Tagged | https://cdn.plot.ly/plotly-gl2d-1.58.4 .js |
329
- | Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.58.4 .min.js |
331
+ | Latest | https://cdn.plot.ly/plotly-gl2d-latest-v2 .js |
332
+ | Latest minified | https://cdn.plot.ly/plotly-gl2d-latest-v2 .min.js |
333
+ | Tagged | https://cdn.plot.ly/plotly-gl2d-2.0.0-rc.0 .js |
334
+ | Tagged minified | https://cdn.plot.ly/plotly-gl2d-2.0.0-rc.0 .min.js |
330
335
331
336
#### npm package (starting in ` v1.39.0 ` )
332
337
@@ -370,16 +375,16 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `
370
375
371
376
| Raw size | Minified size | Minified + gzip size |
372
377
| ------| -----------------| ------------------------|
373
- | 3.4 MB | 1.7 MB | 504.4 kB |
378
+ | 4.3 MB | 1.7 MB | 520.7 kB |
374
379
375
380
#### CDN links
376
381
377
382
| Flavor | URL |
378
383
| ------ | --- |
379
- | Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
380
- | Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
381
- | Tagged | https://cdn.plot.ly/plotly-mapbox-1.58.4 .js |
382
- | Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.58.4 .min.js |
384
+ | Latest | https://cdn.plot.ly/plotly-mapbox-latest-v2 .js |
385
+ | Latest minified | https://cdn.plot.ly/plotly-mapbox-latest-v2 .min.js |
386
+ | Tagged | https://cdn.plot.ly/plotly-mapbox-2.0.0-rc.0 .js |
387
+ | Tagged minified | https://cdn.plot.ly/plotly-mapbox-2.0.0-rc.0 .min.js |
383
388
384
389
#### npm package (starting in ` v1.39.0 ` )
385
390
@@ -423,16 +428,16 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
423
428
424
429
| Raw size | Minified size | Minified + gzip size |
425
430
| ------| -----------------| ------------------------|
426
- | 2.8 MB | 1 MB | 333.8 kB |
431
+ | 2.9 MB | 1.1 MB | 348.7 kB |
427
432
428
433
#### CDN links
429
434
430
435
| Flavor | URL |
431
436
| ------ | --- |
432
- | Latest | https://cdn.plot.ly/plotly-finance-latest.js |
433
- | Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
434
- | Tagged | https://cdn.plot.ly/plotly-finance-1.58.4 .js |
435
- | Tagged minified | https://cdn.plot.ly/plotly-finance-1.58.4 .min.js |
437
+ | Latest | https://cdn.plot.ly/plotly-finance-latest-v2 .js |
438
+ | Latest minified | https://cdn.plot.ly/plotly-finance-latest-v2 .min.js |
439
+ | Tagged | https://cdn.plot.ly/plotly-finance-2.0.0-rc.0 .js |
440
+ | Tagged minified | https://cdn.plot.ly/plotly-finance-2.0.0-rc.0 .min.js |
436
441
437
442
#### npm package (starting in ` v1.39.0 ` )
438
443
@@ -468,6 +473,59 @@ npm install plotly.js-finance-dist-min
468
473
| CommonJS | ` require('plotly.js/lib/index-finance') ` |
469
474
470
475
476
+ ### plotly.js strict
477
+
478
+ The ` strict ` partial bundle contains trace modules ` scatter ` , ` bar ` , ` box ` , ` heatmap ` , ` histogram ` , ` histogram2d ` , ` histogram2dcontour ` , ` contour ` , ` scatterternary ` , ` violin ` , ` funnel ` , ` waterfall ` , ` image ` , ` pie ` , ` sunburst ` , ` treemap ` , ` funnelarea ` , ` scattergeo ` , ` choropleth ` , ` scattergl ` , ` splom ` , ` parcoords ` , ` parcats ` , ` scattermapbox ` , ` choroplethmapbox ` , ` densitymapbox ` , ` sankey ` , ` indicator ` , ` table ` , ` carpet ` , ` scattercarpet ` , ` contourcarpet ` , ` ohlc ` , ` candlestick ` , ` scatterpolar ` , ` scatterpolargl ` and ` barpolar ` .
479
+
480
+ #### Stats
481
+
482
+ | Raw size | Minified size | Minified + gzip size |
483
+ | ------| -----------------| ------------------------|
484
+ | 6.6 MB | 2.7 MB | 830.3 kB |
485
+
486
+ #### CDN links
487
+
488
+ | Flavor | URL |
489
+ | ------ | --- |
490
+ | Latest | https://cdn.plot.ly/plotly-strict-latest-v2.js |
491
+ | Latest minified | https://cdn.plot.ly/plotly-strict-latest-v2.min.js |
492
+ | Tagged | https://cdn.plot.ly/plotly-strict-2.0.0-rc.0.js |
493
+ | Tagged minified | https://cdn.plot.ly/plotly-strict-2.0.0-rc.0.min.js |
494
+
495
+ #### npm package (starting in ` v1.39.0 ` )
496
+
497
+ Install [ ` plotly.js-strict-dist ` ] ( https://www.npmjs.com/package/plotly.js-strict-dist ) with
498
+ ```
499
+ npm install plotly.js-strict-dist
500
+ ```
501
+
502
+ ES6 module usage:
503
+ ``` js
504
+ import Plotly from ' plotly.js-strict-dist'
505
+ ```
506
+
507
+ CommonJS usage:
508
+ ``` js
509
+ var Plotly = require (' plotly.js-strict-dist' );
510
+ ```
511
+
512
+ #### dist min npm package (starting in ` v1.50.0 ` )
513
+
514
+ Install [ ` plotly.js-strict-dist-min ` ] ( https://www.npmjs.com/package/plotly.js-strict-dist-min ) with
515
+ ```
516
+ npm install plotly.js-strict-dist-min
517
+ ```
518
+
519
+ #### Other plotly.js entry points
520
+
521
+ | Flavor | Location |
522
+ | ---------------| ----------|
523
+ | dist bundle | ` dist/plotly-strict.js ` |
524
+ | dist bundle (minified) | ` dist/plotly-strict.min.js ` |
525
+ | ES6 module | ` import Plotly from 'plotly.js/lib/index-strict' ` |
526
+ | CommonJS | ` require('plotly.js/lib/index-strict') ` |
527
+
528
+
471
529
----------------
472
530
473
531
_ This file is auto-generated by ` npm run stats ` . Please do not edit this file directly._
0 commit comments