You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,15 @@ and more.
32
32
33
33
## Quick start options
34
34
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
36
44
37
45
```html
38
46
<!-- Latest compiled and minified plotly.js JavaScript -->
@@ -47,21 +55,13 @@ and more.
47
55
48
56
and use the `Plotly` object in the window scope.
49
57
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
59
59
60
60
[Latest Release on Github](https://github.com/plotly/plotly.js/releases/)
61
61
62
62
and use the plotly.js `dist` file(s). More info [here](https://github.com/plotly/plotly.js/blob/master/dist/README.md).
63
63
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.
65
65
66
66
67
67
## Modules
@@ -70,7 +70,7 @@ Starting in `v1.15.0`, plotly.js ships with several _partial_ bundles (more info
70
70
71
71
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.
72
72
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:
0 commit comments