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
The `plotly.js` is bundled within the angular code. To avoid this, please read [how to customize the plotlyjs bundle](#customizing-the-plotlyjs-bundle) below.
95
92
96
93
## API Reference
97
94
@@ -185,53 +182,6 @@ will put the user template into the root *\<div\>* of the resulting *plotly.js*
185
182
in front of any plotly-generated elements. This could be useful for implementing plot overlays.
186
183
187
184
188
-
## Customizing the `plotly.js` bundle
189
-
190
-
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.
191
-
192
-
If you wish to optimize loading `plotly.js` in a different way, please check the [`PlotlyViaCDNModule`](#plotly-via-cdn-module) module below.
193
-
194
-
195
-
### Plotly Via CDN Module
196
-
197
-
If you want to load `plotly.js`[from a CDN](https://github.com/plotly/plotly.js#use-the-plotlyjs-cdn-hosted-by-fastly), use the `PlotlyViaCDNModule` and set on the `PlotlyViaCDNModule.plotlyVersion` property the plotly.js's version you want to use and, optionally, you can also set on the `PlotlyViaCDNModule.plotlyBundle` property the plotly.js's build you want to use:
0 commit comments