4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
5 <title>Custom grid and Dot
</title>
7 <script type=
"text/javascript" src=
"../excanvas.js"></script>
10 For production (minified) code, use:
11 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
13 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
15 <script type=
"text/javascript" src=
"data.js"></script>
19 <p>Dot and lines should be extra large. Grid is red.
</p>
20 <div id=
"div_g14" style=
"width:600px; height:300px;"></div>
22 <script type=
"text/javascript">
24 document.getElementById(
"div_g14"),
28 gridLineColor: '#FF0000',
29 highlightCircleSize:
10,
35 <p>Use axis specific grid options. (independentTicks, gridLinePattern, ...)
</p>
36 <div id=
"div_g15" style=
"width:600px; height:300px;"></div>
38 <script type=
"text/javascript">
40 for (var i =
1; i <=
100; i++) {
42 if (d
> 31) { m =
"02"; d -=
31; }
43 if (m ==
"02" && d
> 28) { m =
"03"; d -=
28; }
44 if (m ==
"03" && d
> 31) { m =
"04"; d -=
31; }
45 if (d <
10) d =
"0" + d;
46 // two series, one with range
1-
100, one with range
1-
2M
47 data.push([new Date(
"2010/" + m +
"/" + d),
50 1e6 * (
1 + i * (
100 - i) / (
50 *
50)),
51 1e6 * (
2 - i * (
100 - i) / (
50 *
50))]);
54 document.getElementById(
"div_g15"),
57 labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
70 independentTicks: true
75 independentTicks: true
78 // set axis-related properties here
80 ticker: Dygraph.numericLinearTicks,
82 independentTicks: true,
83 gridLineColor:
"#ff0000",
84 gridLinePattern: [
4,
4]