4 <title>Per-Series Properties
</title>
6 For production (minified) code, use:
7 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
9 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
13 <h2>Chart with per-series properties
</h2>
14 <div id=
"demodiv"></div>
15 <h2>Chart with per-series properties with legend.
</h2>
16 <div id=
"demodiv2"></div>
17 <h2>First graph, using old-style series specification.
</h2>
18 <div id=
"demodiv3"></div>
19 <script type=
"text/javascript">
21 var zp = function(x) { if (x <
10) return
"0"+x; else return x; };
22 var r =
"date,parabola,line,another line,sine wave,sine wave2\n";
23 for (var i=
1; i<=
31; i++) {
24 r +=
"200610" + zp(i);
25 r +=
"," +
10*(i*(
31-i));
27 r +=
"," +
10*(
250 -
8*i);
28 r +=
"," +
10*(
125 +
125 * Math.sin(
0.3*i));
29 r +=
"," +
10*(
125 +
125 * Math.sin(
0.3*i+Math.PI));
35 document.getElementById(
"demodiv"),
44 highlightCircleSize:
6
53 highlightCircleSize:
10
56 strokePattern: [
10,
2,
5,
2],
58 highlightCircleSize:
3
64 document.getElementById(
"demodiv2"),
74 highlightCircleSize:
6
77 strokePattern: Dygraph.DASHED_LINE,
83 strokePattern: [
25,
5]
86 strokePattern: Dygraph.DOTTED_LINE,
88 highlightCircleSize:
10
91 strokePattern: Dygraph.DOT_DASH_LINE,
93 highlightCircleSize:
3
99 document.getElementById(
"demodiv3"),
108 highlightCircleSize:
6
117 highlightCircleSize:
10
120 strokePattern: [
10,
2,
5,
2],
122 highlightCircleSize:
3