+
+ <p>If you're using npm and a bundler like webpack, browserify or rollup, you can install dygraphs via:</p>
+
+ <pre>npm install --save dygraphs</pre>
+
+ and use it via:
+
+ <pre class="prettyprint">import Dygraph from 'dygraphs';
+// or: const Dygraph = require('dygraphs');
+const g = new Dygraph(div, data, {});</pre>
+
+ <p>Check out the <a href="https://github.com/danvk/dygraphs-es6">dygraphs ES6 sample project</a> for more details on this approach.</p>