forked from kaliatech/dygraphs-dynamiczooming-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (42 loc) · 1.85 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<title>Dygraphs - Dynamic Zooming Examples</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<h3>Example code related to use of Dygraphs</h3>
<ul>
<li><strong></string><a href="example1.html">Example 1</a></strong> - Dynamically loading down-sampled data while zooming, without modifying dygraphs</li>
<li><strong></string><a href="example2.html">Example 2</a></strong> - Similar to example 1, but with selectable range</li>
<li><strong></string><a href="example3.html">Example 3</a></strong> - Shows workaround for handling pan interaction. Also enables auto range on y-axis.</li>
<li><strong></string><a href="example4.html">Example 4</a></strong> - Same as example 3, but verifies works with multiple graph instances.</li>
<li><strong></string><a href="example5.html">Example 5</a></strong> - More complex example showing multiple independent series & 2nd y-axis</li>
</ul
</div>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script type="text/javascript"
src="dygraph-combined-dev.js"></script>
</head>
<div id="graphdiv"></div>
<script type="text/javascript">
g = new Dygraph(
// containing div
document.getElementById("graphdiv"),
// CSV or path to a CSV file.
"Date,Temperature\n" +
"2008-05-07,75\n" +
"2008-05-08,70\n" +
"2008-05-09,80\n"
);
</script>
</body>
</html>