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

Skip to content

Commit cbf9389

Browse files
committed
readme adjustments
1 parent 7552e3b commit cbf9389

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

README.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,18 @@ Plotly.js can be used to produce dozens of chart types and visualizations, inclu
3131

3232
---
3333
## Load as a node module
34-
Install plotly.js source
35-
```sh
36-
npm i --save plotly.js
37-
```
38-
Or [a ready-to-use distributed bundle](https://github.com/plotly/plotly.js/blob/master/dist/README.md)
34+
Install [a ready-to-use distributed bundle](https://github.com/plotly/plotly.js/blob/master/dist/README.md)
3935
```sh
4036
npm i --save plotly.js-dist-min
4137
```
4238

4339
and use import or require in node.js
4440
```js
4541
// ES6 module
46-
import Plotly from 'plotly.js-dist-dist';
42+
import Plotly from 'plotly.js-dist-min';
4743

4844
// CommonJS
49-
var Plotly = require('plotly.js-dist-dist');
45+
var Plotly = require('plotly.js-dist-min');
5046
```
5147

5248
---
@@ -71,25 +67,6 @@ var Plotly = require('plotly.js-dist-dist');
7167
</body>
7268
```
7369

74-
### Native ES6 JavaScript import
75-
```html
76-
<body>
77-
<div id="gd"></div>
78-
79-
<script>
80-
import "https://cdn.plot.ly/plotly-2.0.0-rc.3.min.js"
81-
82-
Plotly.newPlot("gd", /* JSON object */ {
83-
"data": [{ "y": [1, 2, 3] }],
84-
"layout": { "width": 600, "height": 400}
85-
})
86-
</script>
87-
</body>
88-
```
89-
90-
To learn more about native imports please visit [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules). Also please note that ES6 import is not supported by IE-11.
91-
92-
### Content Delivery Network (CDN)
9370
Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastly.com/open-source>.
9471

9572
### Un-minified versions are also available on CDN

0 commit comments

Comments
 (0)