@@ -42,7 +42,7 @@ object. This property must be set before the plotly.js script tag, for example:
4242Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
4343Many other localizations are available - here is an example using Swiss-German (de-CH),
4444see 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
4646Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
4747
4848* After* the plotly.js script tag, add:
@@ -65,12 +65,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
6565
6666It be can imported as minified javascript
6767- 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
6969
7070or as raw javascript:
7171- using the ` plotly.js-dist ` npm package (starting in ` v1.39.0 ` )
7272- 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
7474- using CommonJS with ` require('plotly.js') `
7575
7676If 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:
7979
8080| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
8181| -----------| ---------------| ----------------------| ---------------------|
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 |
8383
8484## Partial bundles
8585
@@ -92,11 +92,16 @@ Starting in `v1.15.0`, plotly.js also ships with several _partial_ bundles:
9292- [ gl2d] ( #plotlyjs-gl2d )
9393- [ mapbox] ( #plotlyjs-mapbox )
9494- [ finance] ( #plotlyjs-finance )
95+ - [ strict] ( #plotlyjs-strict )
9596
9697Starting in ` v1.39.0 ` , each plotly.js partial bundle has a corresponding npm package with no dependencies.
9798
9899Starting in ` v1.50.0 ` , the minified version of each partial bundle is also published to npm in a separate "dist min" package.
99100
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+
100105### plotly.js basic
101106
102107The ` 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`.
105110
106111| Raw size | Minified size | Minified + gzip size |
107112| ------| -----------------| ------------------------|
108- | 2.6 MB | 937.1 kB | 307 .9 kB |
113+ | 2.7 MB | 993.8 kB | 322 .9 kB |
109114
110115#### CDN links
111116
112117| Flavor | URL |
113118| ------ | --- |
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 |
118123
119124#### npm package (starting in ` v1.39.0 ` )
120125
@@ -158,16 +163,16 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
158163
159164| Raw size | Minified size | Minified + gzip size |
160165| ------| -----------------| ------------------------|
161- | 3 MB | 1.1 MB | 361.6 kB |
166+ | 3.3 MB | 1.2 MB | 391.7 kB |
162167
163168#### CDN links
164169
165170| Flavor | URL |
166171| ------ | --- |
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 |
171176
172177#### npm package (starting in ` v1.39.0 ` )
173178
@@ -211,16 +216,16 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
211216
212217| Raw size | Minified size | Minified + gzip size |
213218| ------| -----------------| ------------------------|
214- | 2.7 MB | 963.7 kB | 317.3 kB |
219+ | 2.8 MB | 1020.4 kB | 332.9 kB |
215220
216221#### CDN links
217222
218223| Flavor | URL |
219224| ------ | --- |
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 |
224229
225230#### npm package (starting in ` v1.39.0 ` )
226231
@@ -264,16 +269,16 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
264269
265270| Raw size | Minified size | Minified + gzip size |
266271| ------| -----------------| ------------------------|
267- | 3.7 MB | 1.4 MB | 463.2 kB |
272+ | 3.8 MB | 1.5 MB | 478.3 kB |
268273
269274#### CDN links
270275
271276| Flavor | URL |
272277| ------ | --- |
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 |
277282
278283#### npm package (starting in ` v1.39.0 ` )
279284
@@ -311,22 +316,22 @@ npm install plotly.js-gl3d-dist-min
311316
312317### plotly.js gl2d
313318
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 ` .
315320
316321#### Stats
317322
318323| Raw size | Minified size | Minified + gzip size |
319324| ------| -----------------| ------------------------|
320- | 3.7 MB | 1.5 MB | 488.6 kB |
325+ | 3.8 MB | 1.5 MB | 498.9 kB |
321326
322327#### CDN links
323328
324329| Flavor | URL |
325330| ------ | --- |
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 |
330335
331336#### npm package (starting in ` v1.39.0 ` )
332337
@@ -370,16 +375,16 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `
370375
371376| Raw size | Minified size | Minified + gzip size |
372377| ------| -----------------| ------------------------|
373- | 3.4 MB | 1.7 MB | 504.4 kB |
378+ | 4.3 MB | 1.7 MB | 520.7 kB |
374379
375380#### CDN links
376381
377382| Flavor | URL |
378383| ------ | --- |
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 |
383388
384389#### npm package (starting in ` v1.39.0 ` )
385390
@@ -423,16 +428,16 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
423428
424429| Raw size | Minified size | Minified + gzip size |
425430| ------| -----------------| ------------------------|
426- | 2.8 MB | 1 MB | 333.8 kB |
431+ | 2.9 MB | 1.1 MB | 348.7 kB |
427432
428433#### CDN links
429434
430435| Flavor | URL |
431436| ------ | --- |
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 |
436441
437442#### npm package (starting in ` v1.39.0 ` )
438443
@@ -468,6 +473,59 @@ npm install plotly.js-finance-dist-min
468473| CommonJS | ` require('plotly.js/lib/index-finance') ` |
469474
470475
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+
471529----------------
472530
473531_ This file is auto-generated by ` npm run stats ` . Please do not edit this file directly._
0 commit comments