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
* Documentation / test cleanup
* Remove deprecated avoidMinZero option
* remove all references to dygraph-combined
* Drop for..of and polyfill to save space
* Check for strings in native format
* Generate minified CSS
* Get npm distribution working
* Guard process access for rollup
* Add ES6 example to home page
* Update tests to source CSS from dist
* update some references
* Drop bower, bump version
* index.es5.js
* bump version
Copy file name to clipboardexpand all lines: docs/index.html
+14-2
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ <h4>dygraphs is a fast, flexible open source JavaScript charting library.</h4>
26
26
<divid="demodiv"></div>
27
27
</div>
28
28
</div>
29
-
29
+
30
30
31
31
<scripttype="text/javascript">
32
32
g=newDygraph(
@@ -61,6 +61,18 @@ <h3>Getting Started</h3>
61
61
<p>Start by <ahref="download.html">downloading dygraphs</a>. Then read the <ahref="tutorial.html">Tutorial</a> to learn how to use it, or just <ahref="http://dygraphs.com/fiddle">play with dygraphs</a> on jsFiddle.</p>
62
62
63
63
<p>Once you've got your feet wet, look for inspiration in the <ahref="gallery/">demo gallery</a> or check out our <ahref="users.html">list of users</a>.</p>
64
+
65
+
<p>If you're using npm and a bundler like webpack, browserify or rollup, you can install dygraphs via:</p>
66
+
67
+
<pre>npm install --save dygraphs</pre>
68
+
69
+
and use it via:
70
+
71
+
<preclass="prettyprint">import Dygraph from 'dygraphs';
72
+
// or: const Dygraph = require('dygraphs');
73
+
const g = new Dygraph(div, data, {});</pre>
74
+
75
+
<p>Check out the <ahref="https://github.com/danvk/dygraphs-es6">dygraphs ES6 sample project</a> for more details on this approach.</p>
Copy file name to clipboardexpand all lines: docs/tutorial.html
+10-5
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,8 @@
6
6
}
7
7
</style>
8
8
9
-
<p>To use dygraphs, include the <code><ahref="download.html">dygraph-combined-dev.js</a></code> JavaScript file and instantiate a <code>Dygraph</code> object.</p>
9
+
<p>To use dygraphs, include the <code><ahref="download.html">dygraph.js</a></code> JavaScript file
10
+
and <code>dygraph.css</code> CSS file. Then instantiate a <code>Dygraph</code> object.</p>
10
11
11
12
<p>Here's a basic example to get things started:</p>
Copy file name to clipboardexpand all lines: docs/versions.html
+9-1
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,14 @@ <h2>Version History</h2>
28
28
29
29
<tableclass="versions">
30
30
<tr>
31
+
<td>1.1.1<pclass="date">2015-06-01</p></td>
32
+
<tdclass="notes">
33
+
<ul>
34
+
<li>Set <code>this</code> to the dygraph in all callbacks.</li>
35
+
<li>Minor bug fixes.</li>
36
+
</ul>
37
+
</td>
38
+
31
39
<td>1.1.0<pclass="date">2014-12-03</p></td>
32
40
<tdclass="notes">
33
41
Highlights include:
@@ -42,7 +50,7 @@ <h2>Version History</h2>
42
50
<li>"this" is set to the dygraph in all callbacks.
43
51
<li>dygraphs has shrunk, because we moved some stuff into "extras" (133kb→122kb)
44
52
</ul>
45
-
53
+
46
54
This will be the last major release to support browsers without a native <canvas> implementation. See <ahref="http://blog.dygraphs.com/2014/12/dygraphs-110.html">blog post</a> for more details.
0 commit comments