3 <title>fillGraph
</title>
5 <script type=
"text/javascript" src=
"excanvas.js"></script>
7 <script type=
"text/javascript" src=
"../dygraph-combined.js"></script>
8 <script type=
"text/javascript" src=
"../dygraph-canvas.js"></script>
9 <script type=
"text/javascript" src=
"../dygraph.js"></script>
12 <p>Filled, no error bars:
</p>
13 <div id=
"div_g" style=
"width:600px; height:300px;"></div>
15 <p>Filled, negatives:
</p>
16 <div id=
"div_g2" style=
"width:600px; height:300px;"></div>
18 <p>Filled, error bars:
</p>
19 <div id=
"div_g3" style=
"width:600px; height:300px;"></div>
21 <script type=
"text/javascript">
23 document.getElementById(
"div_g"),
25 var ret =
"X,Y1,Y2\n";
26 for (var i =
0; i <
100; i++) {
27 ret += i +
"," + i +
"," + (i * (
100-i) *
100/(
50*
50)) +
"\n";
35 document.getElementById(
"div_g3"),
37 var ret =
"X,Y1,Y2\n";
38 for (var i =
0; i <
100; i++) {
39 ret += i +
"," + (i -
50) +
40 "," + (
50 - i * (
100-i) *
100/(
50*
50)) +
"\n";
48 document.getElementById(
"div_g2"),
50 var ret =
"X,Y1,Y2\n";
51 for (var i =
0; i <
100; i++) {
52 ret += i +
"," + i +
",10," +
53 (i * (
100-i) *
100/(
50*
50)) +
",5\n";