X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=docs%2Findex.html;h=aae433fb3f890cf6230c58b80d61ca9911ec640c;hb=f160e4ac8166f74d1f0e5604061564fbca5ba5a5;hp=b6b5aa137f9af524ac2f809506caa590812bca72;hpb=144034416d8119387dbdc3ce689d7b9fa4b2a0ee;p=dygraphs.git diff --git a/docs/index.html b/docs/index.html index b6b5aa1..aae433f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -26,7 +26,7 @@ pre.prettyprint {
- + @@ -53,7 +53,7 @@ pre.prettyprint {Start by downloading dygraphs. Then read the Tutorial to learn how to use it, or just play with dygraphs on jsFiddle.
Once you've got your feet wet, look for inspiration in the demo gallery or check out our list of users.
+ +If you're using npm and a bundler like webpack, browserify or rollup, you can install dygraphs via:
+ +npm install --save dygraphs+ + and use it via: + +
import Dygraph from 'dygraphs'; +// or: const Dygraph = require('dygraphs'); +const g = new Dygraph(div, data, {});+ +
Check out the dygraphs ES6 sample project for more details on this approach.