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
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
-
<scriptsrc="plotly.min.js"></script>
39
-
```
40
-
41
17
### To include localization
42
18
43
19
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
44
20
Many other localizations are available - here is an example using Swiss-German (de-CH),
45
21
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
47
22
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
48
23
49
24
*After* the plotly.js script tag, add:
@@ -66,12 +41,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
66
41
67
42
It be can imported as minified javascript
68
43
- 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
70
45
71
46
or as raw javascript:
72
47
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
73
48
- 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
75
50
- using CommonJS with `require('plotly.js')`
76
51
77
52
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`.
0 commit comments