Skip to content

Commit f1f6694

Browse files
committed
update dist/README
1 parent 422972c commit f1f6694

File tree

1 file changed

+2
-43
lines changed

1 file changed

+2
-43
lines changed

dist/README.md

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,11 @@ or the un-minified version as:
1414
<script src="plotly.js" charset="utf-8"></script>
1515
```
1616

17-
### To support MathJax
18-
19-
*Before* the plotly.js script tag, add:
20-
21-
```html
22-
<script src="mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
23-
```
24-
25-
You can get the relevant MathJax files from the internet e.g.
26-
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG.js"
27-
28-
By default, plotly.js will modify the global MathJax configuration on load.
29-
This can lead to undesirable behavior if plotly.js is loaded alongside
30-
other libraries that also rely on MathJax. To disable this global configuration
31-
process, set the `MathJaxConfig` property to `'local'` in the `window.PlotlyConfig`
32-
object. This property must be set before the plotly.js script tag, for example:
33-
34-
```html
35-
<script>
36-
window.PlotlyConfig = {MathJaxConfig: 'local'}
37-
</script>
38-
<script src="plotly.min.js"></script>
39-
```
40-
4117
### To include localization
4218

4319
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
4420
Many other localizations are available - here is an example using Swiss-German (de-CH),
4521
see the contents of this directory for the full list.
46-
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.2.js
4722
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
4823

4924
*After* the plotly.js script tag, add:
@@ -66,12 +41,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
6641

6742
It be can imported as minified javascript
6843
- using dist file `dist/plotly.min.js`
69-
- using CDN URL https://cdn.plot.ly/plotly-latest-v2.min.js OR https://cdn.plot.ly/plotly-2.0.0-rc.2.min.js
44+
- using CDN URL https://cdn.plot.ly/plotly-2.0.0-rc.2.min.js
7045

7146
or as raw javascript:
7247
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
7348
- using dist file `dist/plotly.js`
74-
- using CDN URL https://cdn.plot.ly/plotly-latest-v2.js OR https://cdn.plot.ly/plotly-2.0.0-rc.2.js
49+
- using CDN URL https://cdn.plot.ly/plotly-2.0.0-rc.2.js
7550
- using CommonJS with `require('plotly.js')`
7651

7752
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`
@@ -117,8 +92,6 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
11792

11893
| Flavor | URL |
11994
| ------ | --- |
120-
| Latest | https://cdn.plot.ly/plotly-basic-latest-v2.js |
121-
| Latest minified | https://cdn.plot.ly/plotly-basic-latest-v2.min.js |
12295
| Tagged | https://cdn.plot.ly/plotly-basic-2.0.0-rc.2.js |
12396
| Tagged minified | https://cdn.plot.ly/plotly-basic-2.0.0-rc.2.min.js |
12497

@@ -170,8 +143,6 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
170143

171144
| Flavor | URL |
172145
| ------ | --- |
173-
| Latest | https://cdn.plot.ly/plotly-cartesian-latest-v2.js |
174-
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest-v2.min.js |
175146
| Tagged | https://cdn.plot.ly/plotly-cartesian-2.0.0-rc.2.js |
176147
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-2.0.0-rc.2.min.js |
177148

@@ -223,8 +194,6 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
223194

224195
| Flavor | URL |
225196
| ------ | --- |
226-
| Latest | https://cdn.plot.ly/plotly-geo-latest-v2.js |
227-
| Latest minified | https://cdn.plot.ly/plotly-geo-latest-v2.min.js |
228197
| Tagged | https://cdn.plot.ly/plotly-geo-2.0.0-rc.2.js |
229198
| Tagged minified | https://cdn.plot.ly/plotly-geo-2.0.0-rc.2.min.js |
230199

@@ -276,8 +245,6 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
276245

277246
| Flavor | URL |
278247
| ------ | --- |
279-
| Latest | https://cdn.plot.ly/plotly-gl3d-latest-v2.js |
280-
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest-v2.min.js |
281248
| Tagged | https://cdn.plot.ly/plotly-gl3d-2.0.0-rc.2.js |
282249
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-2.0.0-rc.2.min.js |
283250

@@ -329,8 +296,6 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
329296

330297
| Flavor | URL |
331298
| ------ | --- |
332-
| Latest | https://cdn.plot.ly/plotly-gl2d-latest-v2.js |
333-
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest-v2.min.js |
334299
| Tagged | https://cdn.plot.ly/plotly-gl2d-2.0.0-rc.2.js |
335300
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-2.0.0-rc.2.min.js |
336301

@@ -382,8 +347,6 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
382347

383348
| Flavor | URL |
384349
| ------ | --- |
385-
| Latest | https://cdn.plot.ly/plotly-mapbox-latest-v2.js |
386-
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest-v2.min.js |
387350
| Tagged | https://cdn.plot.ly/plotly-mapbox-2.0.0-rc.2.js |
388351
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-2.0.0-rc.2.min.js |
389352

@@ -435,8 +398,6 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
435398

436399
| Flavor | URL |
437400
| ------ | --- |
438-
| Latest | https://cdn.plot.ly/plotly-finance-latest-v2.js |
439-
| Latest minified | https://cdn.plot.ly/plotly-finance-latest-v2.min.js |
440401
| Tagged | https://cdn.plot.ly/plotly-finance-2.0.0-rc.2.js |
441402
| Tagged minified | https://cdn.plot.ly/plotly-finance-2.0.0-rc.2.min.js |
442403

@@ -488,8 +449,6 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
488449

489450
| Flavor | URL |
490451
| ------ | --- |
491-
| Latest | https://cdn.plot.ly/plotly-strict-latest-v2.js |
492-
| Latest minified | https://cdn.plot.ly/plotly-strict-latest-v2.min.js |
493452
| Tagged | https://cdn.plot.ly/plotly-strict-2.0.0-rc.2.js |
494453
| Tagged minified | https://cdn.plot.ly/plotly-strict-2.0.0-rc.2.min.js |
495454

0 commit comments

Comments
 (0)