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
|`[data]`|`Array`|`[]`| list of trace objects (see https://plot.ly/javascript/reference/)|
98
98
|`[layout]`|`Object`|`undefined`| layout object (see https://plot.ly/javascript/reference/#layout)|
99
-
| `[theme]` | `string` | `'none'` | name of pre-defined theme (see [Using themes](#Using%20themes))
100
99
|`[frames]`|`Array`|`undefined`| list of frame objects (see https://plot.ly/javascript/reference/)|
101
100
|`[config]`|`Object`|`undefined`| config object (see https://plot.ly/javascript/configuration-options/)|
102
101
|`[revision]`|`Number`|`undefined`| When provided, causes the plot to update when the revision is incremented. |
@@ -181,23 +180,6 @@ will put the user template into the root *\<div\>* of the resulting *plotly.js*
181
180
in front of any plotly-generated elements. This could be useful for implementing plot overlays.
182
181
183
182
184
-
## Using themes
185
-
186
-
There are few pre-defined themes you can use:
187
-
* ggplot2
188
-
* seaborn
189
-
* simple_white
190
-
* plotly
191
-
* plotly_white
192
-
* plotly_dark
193
-
* presentation
194
-
* xgridoff
195
-
* ygridoff
196
-
* gridon
197
-
198
-
These themes were based on [plotly.py](https://github.com/plotly/plotly.py/tree/6f519c8fc459651e1b03704fa83bd66c804f8a67/packages/python/plotly/plotly/package_data/templates)
199
-
200
-
201
183
## Customizing the `plotly.js` bundle
202
184
203
185
By default, this library bundles `plotly.js` from the peer dependency together within the output. This results on huge outputs, for `plotly.js` itself is ~3MB when bundled. It also makes the build (with `ng serve --prod`) really slow, for it minifies everything together.
@@ -260,7 +242,7 @@ PlotlyViaCDNModule.loadViaCDN('custom', 'https://custom.cdn/url'); // can be use
260
242
...
261
243
"options": {
262
244
"scripts": [
263
-
"node_modules/plotly.js/dist/plotly.min.js"// add this
245
+
"node_modules/plotly.js-dist-min/plotly.min.js"// add this
0 commit comments