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
Built on top of [d3.js](http://d3js.org/) and [stack.gl](http://stack.gl/),
7
13
plotly.js is a high-level, declarative charting library. plotly.js ships with over 20
8
14
chart types, including scientific charts, 3D graphs, statistical charts, SVG maps, financial charts,
@@ -103,9 +109,23 @@ Important: the plotly.js code base contains some non-ascii characters. Therefore
103
109
```
104
110
105
111
106
-
#### Webpack Usage with Modules
112
+
#### Building plotly.js with Webpack
107
113
108
-
Browserify [transforms](https://github.com/substack/browserify-handbook#transforms) are required to build plotly.js, namely, [glslify](https://github.com/stackgl/glslify) to transform WebGL shaders and [cwise](https://github.com/scijs/cwise) to compile component-wise array operations. To make the trace module system work with Webpack, you will need to install [ify-loader](https://github.com/hughsk/ify-loader) and add it to your `webpack.config.json` for your build to correctly bundle plotly.js files.
114
+
For plotly.js to build with Webpack you will need to install [[email protected]+](https://github.com/hughsk/ify-loader) and add it to your `webpack.config.json`. This adds Browserify transform compatibility to Webpack which is necessary for some plotly.js dependencies.
115
+
116
+
A repo that demonstrates how to build plotly.js with Webpack can be found [here](https://github.com/rreusser/plotly-webpack). In short add `ify-loader` to the `module` section in your `webpack.config.js`:
Copy file name to clipboardExpand all lines: dist/README.md
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -37,11 +37,11 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
37
37
38
38
It be can imported as minified javascript
39
39
- using dist file `dist/plotly.min.js`
40
-
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.30.0.min.js
40
+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.31.2.min.js
41
41
42
42
or as raw javascript:
43
43
- using dist file `dist/plotly.js`
44
-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.30.0.js
44
+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.31.2.js
45
45
- using CommonJS with `require('plotly.js')`
46
46
47
47
If you would like to have access to the attribute meta information (including attribute descriptions as on the [schema reference page](https://plot.ly/javascript/reference/)), use dist file `dist/plotly-with-meta.js`
@@ -50,7 +50,7 @@ The main plotly.js bundle weights in at:
0 commit comments