Skip to content

Commit 663dbf1

Browse files
Re-add deleted files from dist
1 parent 605c627 commit 663dbf1

File tree

99 files changed

+1546893
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1546893
-0
lines changed

dist/README.md

Lines changed: 271 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,271 @@
1+
# Using distributed files
2+
3+
All plotly.js bundles inject an object `Plotly` into the global scope.
4+
5+
Import plotly.js as:
6+
7+
```html
8+
<script src="plotly.min.js"></script>
9+
```
10+
11+
or the un-minified version as:
12+
13+
```html
14+
<script src="plotly.js" charset="utf-8"></script>
15+
```
16+
17+
### To include localization
18+
19+
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
20+
Many other localizations are available - here is an example using Swiss-German (de-CH),
21+
see the contents of this directory for the full list.
22+
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
23+
24+
*After* the plotly.js script tag, add:
25+
26+
```html
27+
<script src="plotly-locale-de-ch.js"></script>
28+
<script>Plotly.setPlotConfig({locale: 'de-CH'})</script>
29+
```
30+
31+
The first line loads and registers the locale definition with plotly.js, the second sets it as the default for all Plotly plots.
32+
You can also include multiple locale definitions and apply them to each plot separately as a `config` parameter:
33+
34+
```js
35+
Plotly.newPlot(graphDiv, data, layout, {locale: 'de-CH'})
36+
```
37+
38+
# Bundle information
39+
40+
The main plotly.js bundle includes all trace modules.
41+
42+
The main plotly.js bundles weight in at:
43+
44+
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
45+
|-----------|---------------|----------------------|---------------------|
46+
| 10.3 MB | 4.4 MB | 1.4 MB | 10.6 MB |
47+
48+
#### CDN links
49+
> https://cdn.plot.ly/plotly-3.0.1.js
50+
51+
> https://cdn.plot.ly/plotly-3.0.1.min.js
52+
53+
54+
#### npm packages
55+
> [plotly.js](https://www.npmjs.com/package/plotly.js)
56+
57+
> [plotly.js-dist](https://www.npmjs.com/package/plotly.js-dist)
58+
59+
> [plotly.js-dist-min](https://www.npmjs.com/package/plotly.js-dist-min)
60+
61+
#### Meta information
62+
> 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`
63+
---
64+
65+
## Partial bundles
66+
67+
plotly.js also ships with several _partial_ bundles:
68+
69+
- [basic](#plotlyjs-basic)
70+
- [cartesian](#plotlyjs-cartesian)
71+
- [geo](#plotlyjs-geo)
72+
- [gl3d](#plotlyjs-gl3d)
73+
- [gl2d](#plotlyjs-gl2d)
74+
- [mapbox](#plotlyjs-mapbox)
75+
- [finance](#plotlyjs-finance)
76+
- [strict](#plotlyjs-strict)
77+
78+
> Each plotly.js partial bundle has a corresponding npm package with no dependencies.
79+
80+
> The minified version of each partial bundle is also published to npm in a separate "dist-min" package.
81+
82+
> The strict bundle now includes all traces, but the regl-based traces are built differently to avoid function constructors. This results in about a 10% larger bundle size, which is why this method is not used by default. Over time we intend to use the strict bundle to work on other strict CSP issues such as inline CSS.
83+
84+
---
85+
86+
### plotly.js basic
87+
88+
The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
89+
90+
#### Stats
91+
92+
| Raw size | Minified size | Minified + gzip size |
93+
|------|-----------------|------------------------|
94+
| 2.6 MB | 1008.3 kB | 349.2 kB |
95+
96+
#### CDN links
97+
> https://cdn.plot.ly/plotly-basic-3.0.1.js
98+
99+
> https://cdn.plot.ly/plotly-basic-3.0.1.min.js
100+
101+
102+
#### npm packages
103+
> [plotly.js-basic-dist](https://www.npmjs.com/package/plotly.js-basic-dist)
104+
105+
> [plotly.js-basic-dist-min](https://www.npmjs.com/package/plotly.js-basic-dist-min)
106+
107+
---
108+
109+
### plotly.js cartesian
110+
111+
The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `heatmap`, `histogram`, `histogram2d`, `histogram2dcontour`, `image`, `pie`, `scatter`, `scatterternary` and `violin`.
112+
113+
#### Stats
114+
115+
| Raw size | Minified size | Minified + gzip size |
116+
|------|-----------------|------------------------|
117+
| 3.3 MB | 1.3 MB | 446.4 kB |
118+
119+
#### CDN links
120+
> https://cdn.plot.ly/plotly-cartesian-3.0.1.js
121+
122+
> https://cdn.plot.ly/plotly-cartesian-3.0.1.min.js
123+
124+
125+
#### npm packages
126+
> [plotly.js-cartesian-dist](https://www.npmjs.com/package/plotly.js-cartesian-dist)
127+
128+
> [plotly.js-cartesian-dist-min](https://www.npmjs.com/package/plotly.js-cartesian-dist-min)
129+
130+
---
131+
132+
### plotly.js geo
133+
134+
The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `scattergeo`.
135+
136+
#### Stats
137+
138+
| Raw size | Minified size | Minified + gzip size |
139+
|------|-----------------|------------------------|
140+
| 2.9 MB | 1.1 MB | 398.7 kB |
141+
142+
#### CDN links
143+
> https://cdn.plot.ly/plotly-geo-3.0.1.js
144+
145+
> https://cdn.plot.ly/plotly-geo-3.0.1.min.js
146+
147+
148+
#### npm packages
149+
> [plotly.js-geo-dist](https://www.npmjs.com/package/plotly.js-geo-dist)
150+
151+
> [plotly.js-geo-dist-min](https://www.npmjs.com/package/plotly.js-geo-dist-min)
152+
153+
---
154+
155+
### plotly.js gl3d
156+
157+
The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`, `scatter`, `scatter3d`, `streamtube`, `surface` and `volume`.
158+
159+
#### Stats
160+
161+
| Raw size | Minified size | Minified + gzip size |
162+
|------|-----------------|------------------------|
163+
| 4.1 MB | 1.5 MB | 513.5 kB |
164+
165+
#### CDN links
166+
> https://cdn.plot.ly/plotly-gl3d-3.0.1.js
167+
168+
> https://cdn.plot.ly/plotly-gl3d-3.0.1.min.js
169+
170+
171+
#### npm packages
172+
> [plotly.js-gl3d-dist](https://www.npmjs.com/package/plotly.js-gl3d-dist)
173+
174+
> [plotly.js-gl3d-dist-min](https://www.npmjs.com/package/plotly.js-gl3d-dist-min)
175+
176+
---
177+
178+
### plotly.js gl2d
179+
180+
The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scattergl` and `splom`.
181+
182+
#### Stats
183+
184+
| Raw size | Minified size | Minified + gzip size |
185+
|------|-----------------|------------------------|
186+
| 3.4 MB | 1.3 MB | 470.3 kB |
187+
188+
#### CDN links
189+
> https://cdn.plot.ly/plotly-gl2d-3.0.1.js
190+
191+
> https://cdn.plot.ly/plotly-gl2d-3.0.1.min.js
192+
193+
194+
#### npm packages
195+
> [plotly.js-gl2d-dist](https://www.npmjs.com/package/plotly.js-gl2d-dist)
196+
197+
> [plotly.js-gl2d-dist-min](https://www.npmjs.com/package/plotly.js-gl2d-dist-min)
198+
199+
---
200+
201+
### plotly.js mapbox
202+
203+
The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitymapbox`, `scatter` and `scattermapbox`.
204+
205+
#### Stats
206+
207+
| Raw size | Minified size | Minified + gzip size |
208+
|------|-----------------|------------------------|
209+
| 4.4 MB | 1.8 MB | 564.4 kB |
210+
211+
#### CDN links
212+
> https://cdn.plot.ly/plotly-mapbox-3.0.1.js
213+
214+
> https://cdn.plot.ly/plotly-mapbox-3.0.1.min.js
215+
216+
217+
#### npm packages
218+
> [plotly.js-mapbox-dist](https://www.npmjs.com/package/plotly.js-mapbox-dist)
219+
220+
> [plotly.js-mapbox-dist-min](https://www.npmjs.com/package/plotly.js-mapbox-dist-min)
221+
222+
---
223+
224+
### plotly.js finance
225+
226+
The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funnel`, `funnelarea`, `histogram`, `indicator`, `ohlc`, `pie`, `scatter` and `waterfall`.
227+
228+
#### Stats
229+
230+
| Raw size | Minified size | Minified + gzip size |
231+
|------|-----------------|------------------------|
232+
| 2.8 MB | 1.1 MB | 382.9 kB |
233+
234+
#### CDN links
235+
> https://cdn.plot.ly/plotly-finance-3.0.1.js
236+
237+
> https://cdn.plot.ly/plotly-finance-3.0.1.min.js
238+
239+
240+
#### npm packages
241+
> [plotly.js-finance-dist](https://www.npmjs.com/package/plotly.js-finance-dist)
242+
243+
> [plotly.js-finance-dist-min](https://www.npmjs.com/package/plotly.js-finance-dist-min)
244+
245+
---
246+
247+
### plotly.js strict
248+
249+
The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `candlestick`, `carpet`, `choropleth`, `choroplethmapbox`, `cone`, `contour`, `contourcarpet`, `densitymapbox`, `funnel`, `funnelarea`, `heatmap`, `histogram`, `histogram2d`, `histogram2dcontour`, `icicle`, `image`, `indicator`, `isosurface`, `mesh3d`, `ohlc`, `parcats`, `parcoords`, `pie`, `sankey`, `scatter`, `scattergl`, `scatter3d`, `scattercarpet`, `scattergeo`, `scattermapbox`, `scatterpolar`, `scatterpolargl`, `scattersmith`, `scatterternary`, `splom`, `streamtube`, `sunburst`, `surface`, `table`, `treemap`, `violin`, `volume` and `waterfall`.
250+
251+
#### Stats
252+
253+
| Raw size | Minified size | Minified + gzip size |
254+
|------|-----------------|------------------------|
255+
| 11.1 MB | 4.8 MB | 1.5 MB |
256+
257+
#### CDN links
258+
> https://cdn.plot.ly/plotly-strict-3.0.1.js
259+
260+
> https://cdn.plot.ly/plotly-strict-3.0.1.min.js
261+
262+
263+
#### npm packages
264+
> [plotly.js-strict-dist](https://www.npmjs.com/package/plotly.js-strict-dist)
265+
266+
> [plotly.js-strict-dist-min](https://www.npmjs.com/package/plotly.js-strict-dist-min)
267+
268+
---
269+
270+
271+
_This file is auto-generated by `npm run stats`. Please do not edit this file directly._

0 commit comments

Comments
 (0)