</head>
<body>
<p>7-day rollup:</p>
- <div id="g" style="width:600px; height:300px;"></div>
+ <div id="div_g" style="width:600px; height:300px;"></div>
<p>14-Day Rollup:</p>
- <div id="g30" style="width:600px; height:300px;"></div>
+ <div id="div_g30" style="width:600px; height:300px;"></div>
<script type="text/javascript">
g = new Dygraph(
- document.getElementById("g"),
+ document.getElementById("div_g"),
NoisyData, {
rollPeriod: 7,
errorBars: true
}
);
g30 = new Dygraph(
- document.getElementById("g30"),
- NoisyData, {
+ document.getElementById("div_g30"),
+ NoisyData().replace(/,/g, "\t"), {
rollPeriod: 14,
errorBars: true
}