4 <title>fillGraph
</title>
6 For production (minified) code, use:
7 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
9 <script type=
"text/javascript" src=
"../dist/dygraph.js"></script>
13 <p>Filled, no error bars:
</p>
14 <div id=
"div_g" style=
"width:600px; height:300px;"></div>
16 <p>Filled, negatives:
</p>
17 <div id=
"div_g2" style=
"width:600px; height:300px;"></div>
19 <p>Filled on a per-series basis:
</p>
20 <div id=
"div_g3" style=
"width:600px; height:300px;"></div>
22 <script type=
"text/javascript">
24 document.getElementById(
"div_g"),
26 var ret =
"X,Y1,Y2\n";
27 for (var i =
0; i <
100; i++) {
28 ret += i +
"," + i +
"," + (i * (
100-i) *
100/(
50*
50)) +
"\n";
36 document.getElementById(
"div_g2"),
38 var ret =
"X,Y1,Y2\n";
39 for (var i =
0; i <
100; i++) {
40 ret += i +
"," + (i -
50) +
41 "," + (
50 - i * (
100-i) *
100/(
50*
50)) +
"\n";
49 document.getElementById(
"div_g3"),
51 var ret =
"X,Y1,Y2\n";
52 for (var i =
0; i <
100; i++) {
53 ret += i +
"," + i +
"," + (i * (
100-i) *
100/(
50*
50)) +
"\n";
59 Y1: { fillGraph: true }