1 | <!DOCTYPE html>
|
2 | <html lang="en">
|
3 | <head>
|
4 | <meta charset="UTF-8">
|
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 | <title>Dygraphs — main page</title>
|
7 |
|
8 | <link rel="stylesheet" type="text/css" href=".jslibs/bootstrap.min.css" />
|
9 | <link rel="stylesheet" type="text/css" href="dist/dygraph.css" />
|
10 | <link rel="stylesheet" type="text/css" href="common/vextlnk.css" />
|
11 | <link rel="stylesheet" type="text/css" href="site.css" />
|
12 |
|
13 | <script type="text/javascript" src=".jslibs/jquery.min.js"></script>
|
14 | <script type="text/javascript" src=".jslibs/bootstrap.min.js"></script>
|
15 | <script type="text/javascript" src="dist/dygraph.js"></script>
|
16 | </head>
|
17 | <body>
|
18 | <nav id="header" class="navbar navbar-default navbar-fixed-top">
|
19 | <div class="container-fluid">
|
20 | <div class="navbar-header">
|
21 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-responsive-collapse" aria-expanded="false">
|
22 | <span class="sr-only">Toggle navigation</span>
|
23 | <span class="icon-bar"></span>
|
24 | <span class="icon-bar"></span>
|
25 | <span class="icon-bar"></span>
|
26 | </button>
|
27 | <a class="navbar-brand" href="/">dygraphs</a>
|
28 | </div>
|
29 | <div class="collapse navbar-collapse" id="navbar-responsive-collapse">
|
30 |
|
31 |
|
32 | <ul class="nav navbar-nav">
|
33 | <li class="dropdown">
|
34 | <a class="dropdown-toggle" id="drop3" role="button" data-toggle="dropdown" href="#">Documentation<b class="caret"></b></a>
|
35 | <ul id="menu0" class="dropdown-menu" role="menu" aria-labelledby="drop3">
|
36 | <li role="presentation"><a role="menuitem" tabindex="-1" href="tutorial.html">Tutorial</a></li>
|
37 | <li role="presentation"><a role="menuitem" tabindex="-1" href="options.html">Options Reference</a></li>
|
38 | <li role="presentation"><a role="menuitem" tabindex="-1" href="jsdoc/symbols/Dygraph.html">API Reference</a></li>
|
39 | <li role="presentation"><a role="menuitem" tabindex="-1" href="data.html">Data Format</a></li>
|
40 | <li role="presentation"><a role="menuitem" tabindex="-1" href="annotations.html">Annotations</a></li>
|
41 | <li role="presentation"><a role="menuitem" tabindex="-1" href="css.html">CSS Reference</a></li>
|
42 | <li role="presentation"><a role="menuitem" tabindex="-1" href="versions.html">Version History</a></li>
|
43 | <li role="separator" class="divider"></li>
|
44 | <li role="presentation"><a role="menuitem" tabindex="-1" href="ie.html">Notes on Internet Explorer</a></li>
|
45 | </ul>
|
46 | </li>
|
47 | <li class="dropdown">
|
48 | <a class="dropdown-toggle" id="drop4" role="button" data-toggle="dropdown" href="#">Examples<b class="caret"></b></a>
|
49 | <ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4">
|
50 | <li role="presentation"><a role="menuitem" tabindex="-1" href="gallery/">Demo Gallery</a></li>
|
51 | <li role="presentation"><a role="menuitem" tabindex="-1" href="users.html">List of Users</a></li>
|
52 | <li role="separator" class="divider"></li>
|
53 | <li role="presentation"><a role="menuitem" tabindex="-1" href="tests/">Test Cases</a></li>
|
54 | <li role="separator" class="divider"></li>
|
55 | <li role="presentation"><a role="menuitem" tabindex="-1" href="https://dygraphs.com/fiddle/">Play</a></li>
|
56 | </ul>
|
57 | </li>
|
58 | <li><a class="xnavbar-link" href="download.html">Download</a></li>
|
59 | <li class="dropdown">
|
60 | <a class="dropdown-toggle" id="drop7" role="button" data-toggle="dropdown" href="#">Community <b class="caret"></b></a>
|
61 | <ul id="menu4" class="dropdown-menu" role="menu" aria-labelledby="drop7">
|
62 | <li role="presentation"><a role="menuitem" tabindex="-1" href="http://blog.dygraphs.com/">Blog</a></li>
|
63 | <li role="presentation"><a role="menuitem" tabindex="-1" href="https://stackoverflow.com/questions/ask?tags=dygraphs+javascript">Ask a Question</a></li>
|
64 | <li role="presentation"><a role="menuitem" tabindex="-1" href="https://stackoverflow.com/questions/tagged/dygraphs">Stack Overflow</a></li>
|
65 | <li role="presentation"><a role="menuitem" tabindex="-1" href="https://groups.google.com/g/dygraphs-users">Mailing List</a></li>
|
66 | </ul>
|
67 | </li>
|
68 | <li class="dropdown">
|
69 | <a class="dropdown-toggle" id="drop6" role="button" data-toggle="dropdown" href="#">Contribute <b class="caret"></b></a>
|
70 | <ul id="menu3" class="dropdown-menu" role="menu" aria-labelledby="drop6">
|
71 | <li role="presentation"><a role="menuitem" tabindex="-1" href="changes.html">Contributors Guide</a></li>
|
72 | <li role="presentation"><a role="menuitem" tabindex="-1" href="https://github.com/danvk/dygraphs">Source (Github)</a></li>
|
73 | <li role="presentation"><a role="menuitem" tabindex="-1" href="https://github.com/danvk/dygraphs/issues">Issue Tracker</a></li>
|
74 | <li role="presentation"><a role="menuitem" tabindex="-1" href="https://github.com/danvk/dygraphs/issues/new">Report a Bug</a></li>
|
75 | </ul>
|
76 | </li>
|
77 | </ul>
|
78 |
|
79 | </div>
|
80 | </div>
|
81 | </nav>
|
82 |
|
83 | <div class="container" id="main">
|
84 | <div class="row">
|
85 | <div class="col-lg-12">
|
86 | <p style="border:3px inset red; margin:1em; padding:1ex; max-width:45em;"
|
87 | id="mirrornote"><b>⚠</b> Please visit the official Dygraphs homepage
|
88 | <a href="https://dygraphs.com/"><tt>https://dygraphs.com/</tt></a> instead.
|
89 | You are reading this on a mirror, which may have outdated, incomplete
|
90 | and/or locally patched information, or as part of the Debian package;
|
91 | links may not work.</p>
|
92 |
|
93 | <h4>dygraphs is a fast, flexible open source JavaScript charting library.</h4>
|
94 | <p>It allows users to explore and interpret dense data sets. Here's how it works:</p>
|
95 |
|
96 | <div class="row">
|
97 | <div class="col-lg-4">
|
98 | <b>This JavaScript…</b>
|
99 | <pre class="prettyprint">g = new Dygraph(div, "ny-vs-sf.txt", {
|
100 | legend: 'always',
|
101 | title: 'NYC vs. SF',
|
102 | showRoller: true,
|
103 | rollPeriod: 14,
|
104 | customBars: true,
|
105 | ylabel: 'Temperature (F)',
|
106 | });</pre>
|
107 | </div>
|
108 | <div class="col-lg-8">
|
109 | <b>… makes this chart!</b>
|
110 | <div id="demodiv"></div>
|
111 | </div>
|
112 | </div>
|
113 |
|
114 | <script type="text/javascript"><![CDATA[//><!--
|
115 | $(function () {
|
116 | if (window.location.hostname === 'dygraphs.com')
|
117 | document.getElementById('mirrornote').style.display = 'none';
|
118 |
|
119 | g = new Dygraph(
|
120 | document.getElementById("demodiv"),
|
121 | "ny-vs-sf.txt", {
|
122 | rollPeriod: 14,
|
123 | showRoller: true,
|
124 | customBars: true,
|
125 | title: 'NYC vs. SF',
|
126 | ylabel: 'Temperature (F)',
|
127 | legend: 'always'
|
128 | }
|
129 | );
|
130 | });
|
131 | </script>
|
132 |
|
133 | <p>The chart is <i>interactive</i>: you can mouse over to highlight individual values. You can click and drag to zoom. Double-clicking will zoom you back out. Shift-drag will pan. You can change the number and hit enter to adjust the averaging period.</p>
|
134 |
|
135 | <div class="row smalltop">
|
136 | <div class="col-lg-8">
|
137 | <h3>Features</h3>
|
138 | <ul>
|
139 | <li>Handles <strong>huge data sets</strong>: dygraphs plots millions of points without getting bogged down.
|
140 | <li><strong>Interactive out of the box</strong>: zoom, pan and mouseover are on by default.
|
141 | <li>Strong support for <strong>high/low bands</strong> / confidence intervals.
|
142 | <li><strong>Highly customizable</strong>: using options and custom callbacks, you can make dygraphs do almost anything.
|
143 | <li>dygraphs is works in all recent browsers. You can even <strong>pinch to zoom</strong> on mobile/tablet devices!
|
144 | <li>There's an <strong>active community</strong> developing and supporting dygraphs.</li>
|
145 | </ul>
|
146 |
|
147 | <h3>Getting Started</h3>
|
148 | <p>Start by <a href="download.html">downloading dygraphs</a>. Then read the <a href="tutorial.html">Tutorial</a> to learn how to use it, or just <a href="https://dygraphs.com/fiddle/">play with dygraphs</a> on jsFiddle.</p>
|
149 |
|
150 | <p>Once you've got your feet wet, look for inspiration in the <a href="gallery/">demo gallery</a> or check out our <a href="users.html">list of users</a>.</p>
|
151 |
|
152 | <p>If you're using npm and a bundler like webpack, browserify or rollup, you can install dygraphs via:</p>
|
153 |
|
154 | <pre>npm install --save dygraphs</pre>
|
155 |
|
156 | and use it via:
|
157 |
|
158 | <pre class="prettyprint">import Dygraph from 'dygraphs';
|
159 | // or: const Dygraph = require('dygraphs');
|
160 | const g = new Dygraph(div, data, {});</pre>
|
161 |
|
162 | <p>Check out the <a href="https://github.com/danvk/dygraphs-es6">dygraphs ES6 sample project</a> for more details on this approach.</p>
|
163 | </div>
|
164 |
|
165 | <div class="col-lg-4">
|
166 | <h3>Quick Links</h3>
|
167 | <ul>
|
168 | <li><a href="tutorial.html">Tutorial</a>
|
169 | <li><a href="options.html">Options Reference</a>
|
170 | <li><a href="jsdoc/symbols/Dygraph.html">API Reference</a>
|
171 | <li><a href="css.html">CSS Reference</a>
|
172 | <li><a href="data.html">Data format</a> documentation
|
173 | <li><a href="https://stackoverflow.com/questions/ask?tags=dygraphs+javascript">Ask a Question</a> on Stack Overflow.
|
174 | <li><a href="https://groups.google.com/g/dygraphs-users">Mailing List</a>
|
175 | <li><a href="http://blog.dygraphs.com/">dygraphs blog</a>
|
176 | <li><a href="legal.html">Policy & Licensing</a>
|
177 | </ul>
|
178 | </div>
|
179 |
|
180 | </div>
|
181 |
|
182 | </div>
|
183 | </div>
|
184 | </div>
|
185 |
|
186 |
|
187 |
|
188 |
|
189 | </body>
|
190 | </html>
|