Skip to content

Commit 9420141

Browse files
committed
add notes about usages
1 parent bf4a71c commit 9420141

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ chart types, including 3D charts, statistical graphs, and SVG maps.
3333
git clone https://github.com/plotly/plotly.js.git
3434
```
3535

36+
and use the plotly.js `dist` file(s). More info [here](https://github.com/plotly/plotly.js/blob/master/dist/README.md).
37+
3638
#### Install with `npm`
3739
```bash
3840
npm install plotly.js
3941
```
4042

43+
and use the plotly.js `dist` or CommonJS files `var Plotly = require('plotly.js');` in your source file.
44+
4145
#### Use the plotly.js CDN hosted by Fastly:
4246
```html
4347
<!-- Latest compiled and minified plotly.js JavaScript -->
@@ -47,6 +51,8 @@ npm install plotly.js
4751
<script type="text/javascript" src="https://cdn.plot.ly/plotly-1.5.0.min.js"></script>
4852
```
4953

54+
and use the `Plotly` object in the window scope.
55+
5056
Read the [Getting started page](https://plot.ly/javascript/getting-started/) for more examples.
5157

5258
## Modules

0 commit comments

Comments
 (0)