Skip to content

Commit a381d97

Browse files
afarzat-edandrefarzat
authored andcommitted
Updating readme
1 parent 352d2ff commit a381d97

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

README.md

+1-19
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ The `plotly.js` is bundled within the angular code. To avoid this, please read [
9696
| -------------------------- | ---------------------------- | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9797
| `[data]` | `Array` | `[]` | list of trace objects (see https://plot.ly/javascript/reference/) |
9898
| `[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))
10099
| `[frames]` | `Array` | `undefined` | list of frame objects (see https://plot.ly/javascript/reference/) |
101100
| `[config]` | `Object` | `undefined` | config object (see https://plot.ly/javascript/configuration-options/) |
102101
| `[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*
181180
in front of any plotly-generated elements. This could be useful for implementing plot overlays.
182181

183182

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-
201183
## Customizing the `plotly.js` bundle
202184

203185
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
260242
...
261243
"options": {
262244
"scripts": [
263-
"node_modules/plotly.js/dist/plotly.min.js" // add this
245+
"node_modules/plotly.js-dist-min/plotly.min.js" // add this
264246
]
265247
}
266248
}

0 commit comments

Comments
 (0)