You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/README.md
+38-25
Original file line number
Diff line number
Diff line change
@@ -33,12 +33,25 @@ or the un-minified version as:
33
33
34
34
You can grab the relevant MathJax files in `./dist/extras/mathjax/`.
35
35
36
+
By default, plotly.js will modify the global MathJax configuration on load.
37
+
This can lead to undesirable behavior if plotly.js is loaded alongside
38
+
other libraries that also rely on MathJax. To disable this global configuration
39
+
process, set the `MathJaxConfig` property to `'local'` in the `window.PlotlyConfig`
40
+
object. This property must be set before the plotly.js script tag, for example:
41
+
42
+
```html
43
+
<script>
44
+
window.PlotlyConfig= {MathJaxConfig:'local'}
45
+
</script>
46
+
<scriptsrc="plotly.min.js"></script>
47
+
```
48
+
36
49
### To include localization
37
50
38
51
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
39
52
Many other localizations are available - here is an example using Swiss-German (de-CH),
40
53
see the contents of this directory for the full list.
41
-
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.41.3.js
54
+
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.42.0.js
42
55
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
43
56
44
57
*After* the plotly.js script tag, add:
@@ -61,12 +74,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
61
74
62
75
It be can imported as minified javascript
63
76
- using dist file `dist/plotly.min.js`
64
-
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.41.3.min.js
77
+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.42.0.min.js
65
78
66
79
or as raw javascript:
67
80
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
68
81
- using dist file `dist/plotly.js`
69
-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.41.3.js
82
+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.42.0.js
70
83
- using CommonJS with `require('plotly.js')`
71
84
72
85
If you would like to have access to the attribute meta information (including attribute descriptions as on the [schema reference page](https://plot.ly/javascript/reference/)), use dist file `dist/plotly-with-meta.js`
@@ -75,7 +88,7 @@ The main plotly.js bundle weights in at:
0 commit comments