Skip to content

Commit 2bdce23

Browse files
committed
nicolaskruchten-proof README
1 parent f6a19f9 commit 2bdce23

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ and more.
3232

3333
## Quick start options
3434

35-
#### Use the plotly.js CDN hosted by Fastly
35+
### Install with npm
36+
37+
```bash
38+
npm install plotly.js-dist
39+
```
40+
41+
and import plotly.js as `import Plotly from 'plotly.js-dist';` or `var Plotly = require('plotly.js-dist');`.
42+
43+
### Use the plotly.js CDN hosted by Fastly
3644

3745
```html
3846
<!-- Latest compiled and minified plotly.js JavaScript -->
@@ -47,21 +55,13 @@ and more.
4755

4856
and use the `Plotly` object in the window scope.
4957

50-
#### Install with `npm`
51-
52-
```bash
53-
npm install plotly.js-dist
54-
```
55-
56-
and import plotly.js as `import Plotly from 'plotly.js-dist';` or `var Plotly = require('plotly.js-dist');`.
57-
58-
#### Download the latest release
58+
### Download the latest release
5959

6060
[Latest Release on Github](https://github.com/plotly/plotly.js/releases/)
6161

6262
and use the plotly.js `dist` file(s). More info [here](https://github.com/plotly/plotly.js/blob/master/dist/README.md).
6363

64-
##### Read the [Getting started page](https://plot.ly/javascript/getting-started/) for more examples.
64+
#### Read the [Getting started page](https://plot.ly/javascript/getting-started/) for more examples.
6565

6666

6767
## Modules
@@ -70,7 +70,7 @@ Starting in `v1.15.0`, plotly.js ships with several _partial_ bundles (more info
7070

7171
Starting in `v1.39.0`, plotly.js publishes _distributed_ npm packages with no dependencies. For example, run `npm install plotly.js-geo-dist` and add `import Plotly from 'plotly.js-geo-dist';` to your code to start using the plotly.js geo package.
7272

73-
If you would like to manually pick which plotly.js modules to include, you'll first need to run `npm install plotly.js` and then create a *custom* bundle by using `plotly.js/lib/core`, and loading only the trace types that you need (e.g. `pie` or `choropleth`). The recommended way to do this is by creating a *bundling file*. For example, in CommonJS:
73+
If none of the distributed npm packages meet your needs, and you would like to manually pick which plotly.js modules to include, you'll first need to run `npm install plotly.js` and then create a *custom* bundle by using `plotly.js/lib/core`, and loading only the trace types that you need (e.g. `pie` or `choropleth`). The recommended way to do this is by creating a *bundling file*. For example, in CommonJS:
7474

7575
```javascript
7676
// in custom-plotly.js

0 commit comments

Comments
 (0)