Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 013e778

Browse files
committed
sub plotlyCore -> Plotly
1 parent e6c393b commit 013e778

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ If you would like to reduce the bundle size of plotly.js, you can create a *cust
5555

5656
```javascript
5757
// in custom-plotly.js
58-
var plotlyCore = require('plotly.js/lib/core');
58+
var Plotly = require('plotly.js/lib/core');
5959

6060
// Load in the trace types for pie, and choropleth
61-
plotlyCore.register([
61+
Plotly.register([
6262
require('plotly.js/lib/pie'),
6363
require('plotly.js/lib/choropleth')
6464
]);
6565

66-
module.exports = plotlyCore;
66+
module.exports = Plotly;
6767
```
6868

6969
Then elsewhere in your code:

0 commit comments

Comments
 (0)