4 <title>two series
</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>
11 <script type=
"text/javascript" src=
"data.js"></script>
12 <style type=
"text/css">
13 #div_g .dygraph-label {
14 /* This applies to the title, x-axis label and y-axis label */
15 font-family: Arial, Helvetica, sans-serif;
17 #div_g .dygraph-title {
18 /* This rule only applies to the chart title */
20 text-shadow: gray
2px
2px
2px; /* color, delta-x, delta-y, blur radius */
22 #div_g .dygraph-ylabel {
23 /* This rule only applies to the y-axis label */
25 text-shadow: gray -
2px
2px
2px; /* (offsets are in a rotated frame) */
28 border:
1px dashed black;
35 <p>In this chart, each chart label is styled independently. View source to
38 <div class=
"chart" id=
"div_g" style=
"width:600px; height:300px;"></div>
40 <p>This version of the chart uses the default styles:
</p>
41 <div class=
"chart" id=
"div_g2" style=
"width:600px; height:300px;"></div>
43 <script type=
"text/javascript">
45 document.getElementById(
"div_g"),
49 title: 'High and Low Temperatures',
51 ylabel: 'Temperature (F)',
52 xlabel: 'Date (Ticks indicate the start of the indicated time period)',
54 'text-align': 'right',
62 document.getElementById(
"div_g2"),
66 title: 'High and Low Temperatures (
30-day average)',
67 ylabel: 'Temperature (F)',
68 xlabel: 'Date (Ticks indicate the start of the indicated time period)',
70 'text-align': 'right',