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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>missing data</title>
<link rel="stylesheet" type="text/css" href="../dist/dygraph.css" />
<link rel="stylesheet" type="text/css" href="../common/vextlnk.css" />
<script type="text/javascript" src="../dist/dygraph.js"></script>
</head>
<body>
<table>
<tr><td valign=top>
<div id="graph"></div>
<div id="graph2"></div>
</td><td valign=top>
<div id="graph3"></div>
<div id="graph4"></div>
</td><td valign=top>
<div id="graph5"></div>
<div id="graph6"></div>
</td></tr>
</table>
<script type="text/javascript"><!--//--><![CDATA[//><!--
Dygraph.onDOMready(function onDOMready() {
g = new Dygraph(
document.getElementById("graph"),
"Date,GapSeries1,GapSeries2\n" +
"2009/12/01,10,10\n" +
"2009/12/02,15,11\n" +
"2009/12/03,,12\n" +
"2009/12/04,20,13\n" +
"2009/12/05,15,\n" +
"2009/12/06,18,15\n" +
"2009/12/07,12,16\n"
);
g2 = new Dygraph(
document.getElementById("graph2"),
[
[ new Date("2009/12/01"), 10, 10],
[ new Date("2009/12/02"), 15, 11],
[ new Date("2009/12/03"), null, 12],
[ new Date("2009/12/04"), 20, 13],
[ new Date("2009/12/05"), 15, null],
[ new Date("2009/12/06"), 18, 15],
[ new Date("2009/12/07"), 12, 16]
],
{
labels: ["Date","GapSeries1","GapSeries2"],
showRoller: true
}
);
g3 = new Dygraph(
document.getElementById("graph3"),
[
[1, [10, 2], [20, 3]],
[2, [12, 2], [20, 3]],
[3, [ 8, 2], [20, 3]],
[4, [null, 2], [20, 3]],
[5, [null, 2], null],
[6, [ 9, 2], [20, 3]],
[7, [10, 2], [20, 3]]
],
{
errorBars: true,
labels: [ "X", "Series1", "Series2" ]
}
);
g4 = new Dygraph(
document.getElementById("graph4"),
[
[1, [10, 2], [20, 3]],
[2, [12, 2], [20, 3]],
[3, [ 8, 2], [20, 3]],
[4, null, [20, 3]],
[5, null, [null, 3]],
[6, [ 9, 2], [20, 3]],
[7, [10, 2], [20, 3]]
],
{
errorBars: true,
rollPeriod: 2,
labels: [ "X", "Series1", "Series2" ]
}
);
g5 = new Dygraph(
document.getElementById("graph5"),
[
[1, [10, 2], [20, 3]],
[2, [12, 2], [20, 3]],
[3, [ 8, 2], [20, 3]],
[4, [2, null], null],
[5, null, [null, 3]],
[6, [ 9, 2], [20, 3]],
[7, [10, 2], [20, 3]]
],
{
errorBars: true,
connectSeparatedPoints: false,
labels: [ "X", "Series1", "Series2" ]
}
);
g6 = new Dygraph(
document.getElementById("graph6"),
[
[1, [8, 10,12],null],
[2, [3, 5,7],[4,6,7]],
[3, null,[1,2,4]],
[4, [ 9,null, 2],[3,4,8]],
[5, [null,2, null],[6,8,9]],
[6, [2,3, 6],[2,3,5]]
],
{
customBars: true,
connectSeparatedPoints: false,
labels: [ "X", "Series1", "Series2"]
}
);
});
//--><!]]></script>
</body>
</html>
|