<div id="demodiv" style="width: 480px; height: 320px;"></div>
<script type="text/javascript">
- var data = [];
+ var data = "X,Y1,Y2\n";
for (var i = 0; i < 120; i++) {
- data.push([i,
- i / 5.0 + 10.0 * Math.sin(i / 3.0),
- 30.0 - i / 5.0 - 10.0 * Math.sin(i / 3.0 + 1.0)]);
+ // data.push([i,
+ // i / 5.0 + 10.0 * Math.sin(i / 3.0),
+ // 30.0 - i / 5.0 - 10.0 * Math.sin(i / 3.0 + 1.0)]);
+ data += i + "," + i + "/120," + (i*(120-i)) + "/" + (60*60) + "\n";
}
g = new Dygraph(
document.getElementById("demodiv"),
data,
{
- labels: ['X', 'Y1', 'Y2'],
underlayCallback: drawLines,
drawPoints: true,
- strokeWidth: 0.0
+ strokeWidth: 0.0,
+ fractions: true,
+ errorBars: true
}
);