Skip to content

Commit 0c741cc

Browse files
committed
Merge pull request #479 from plotly/etpinard-patch-1
add usage info in README quick start
2 parents 7cc4368 + 02118d7 commit 0c741cc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ chart types, including 3D charts, statistical graphs, and SVG maps.
1818
* [Documentation](#documentation)
1919
* [Contributing](#contributing)
2020
* [Community](#community)
21-
* [Clients for R, Python, and MATLAB](#clients-for-r-python-and-matlab)
21+
* [Clients for R, Python, Node, and MATLAB](#clients-for-r-python-node-and-matlab)
2222
* [Creators](#creators)
2323
* [Copyright and license](#copyright-and-license)
2424

@@ -33,20 +33,26 @@ 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` file(s) or require plotly.js using CommonJS as `var Plotly = require('plotly.js');`.
44+
4145
#### Use the plotly.js CDN hosted by Fastly:
4246
```html
4347
<!-- Latest compiled and minified plotly.js JavaScript -->
4448
<script type="text/javascript" src="https://cdn.plot.ly/plotly-latest.min.js"></script>
4549

46-
<!-- OR use a specific plotly.js release (e.g. version 1.5.0)-->
50+
<!-- OR use a specific plotly.js release (e.g. version 1.5.0) -->
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)