| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>missing data</title> |
| 5 | <!--[if IE]> |
| 6 | <script type="text/javascript" src="../excanvas.js"></script> |
| 7 | <![endif]--> |
| 8 | <script type="text/javascript" src="../strftime/strftime-min.js"></script> |
| 9 | <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script> |
| 10 | <script type="text/javascript" src="../dygraph-canvas.js"></script> |
| 11 | <script type="text/javascript" src="../dygraph.js"></script> |
| 12 | </head> |
| 13 | <body> |
| 14 | <table> |
| 15 | <tr><td valign=top> |
| 16 | <div id="graph"></div> |
| 17 | <div id="graph2"></div> |
| 18 | </td><td valign=top> |
| 19 | <div id="graph3"></div> |
| 20 | <div id="graph4"></div> |
| 21 | </td></tr> |
| 22 | </table> |
| 23 | |
| 24 | <script type="text/javascript"> |
| 25 | g = new Dygraph( |
| 26 | document.getElementById("graph"), |
| 27 | "Date,GapSeries1,GapSeries2\n" + |
| 28 | "2009/12/01,10,10\n" + |
| 29 | "2009/12/02,15,11\n" + |
| 30 | "2009/12/03,,12\n" + |
| 31 | "2009/12/04,20,13\n" + |
| 32 | "2009/12/05,15,\n" + |
| 33 | "2009/12/06,18,15\n" + |
| 34 | "2009/12/07,12,16\n" |
| 35 | ); |
| 36 | |
| 37 | g2 = new Dygraph( |
| 38 | document.getElementById("graph2"), |
| 39 | [ |
| 40 | [ new Date("2009/12/01"), 10, 10], |
| 41 | [ new Date("2009/12/02"), 15, 11], |
| 42 | [ new Date("2009/12/03"), null, 12], |
| 43 | [ new Date("2009/12/04"), 20, 13], |
| 44 | [ new Date("2009/12/05"), 15, null], |
| 45 | [ new Date("2009/12/06"), 18, 15], |
| 46 | [ new Date("2009/12/07"), 12, 16] |
| 47 | ], |
| 48 | { |
| 49 | labels: ["Date","GapSeries1","GapSeries2"], |
| 50 | showRoller: true |
| 51 | } |
| 52 | ); |
| 53 | |
| 54 | g3 = new Dygraph( |
| 55 | document.getElementById("graph3"), |
| 56 | [ |
| 57 | [1, [10, 2], [20, 3]], |
| 58 | [2, [12, 2], [20, 3]], |
| 59 | [3, [ 8, 2], [20, 3]], |
| 60 | [4, [null, 2], [20, 3]], |
| 61 | [5, [null, 2], [null, 3]], |
| 62 | [6, [ 9, 2], [20, 3]], |
| 63 | [7, [10, 2], [20, 3]] |
| 64 | ], |
| 65 | { |
| 66 | errorBars: true, |
| 67 | labels: [ "X", "Series1", "Series2" ] |
| 68 | } |
| 69 | ); |
| 70 | |
| 71 | g4 = new Dygraph( |
| 72 | document.getElementById("graph4"), |
| 73 | [ |
| 74 | [1, [10, 2], [20, 3]], |
| 75 | [2, [12, 2], [20, 3]], |
| 76 | [3, [ 8, 2], [20, 3]], |
| 77 | [4, [null, 2], [20, 3]], |
| 78 | [5, [null, 2], [null, 3]], |
| 79 | [6, [ 9, 2], [20, 3]], |
| 80 | [7, [10, 2], [20, 3]] |
| 81 | ], |
| 82 | { |
| 83 | errorBars: true, |
| 84 | rollPeriod: 2, |
| 85 | labels: [ "X", "Series1", "Series2" ] |
| 86 | } |
| 87 | ); |
| 88 | </script> |
| 89 | </body> |
| 90 | </html> |