Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 013e778

Browse filesBrowse files
committed
sub plotlyCore -> Plotly
1 parent e6c393b commit 013e778
Copy full SHA for 013e778

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.