1 /*global Gallery,Dygraph,data */
5 name
: 'CSS label styling',
6 title
: 'Each chart label is styled independently with CSS',
7 setup
: function(parent
) {
9 "<p class='infotext'>This chart's labels are styled</p>",
10 "<div class='chart' id='div_g' style='width:600px; height:300px;'></div>",
11 "<p class='infotext'>This version of the chart uses the default styles:</p>",
12 "<div class='chart' id='div_g2' style='width:600px; height:300px;'></div>"].join("\n");
16 document
.getElementById("div_g"),
20 title
: 'High and Low Temperatures',
22 ylabel
: 'Temperature (F)',
23 xlabel
: 'Date (Ticks indicate the start of the indicated time period)',
25 'text-align': 'right',
33 document
.getElementById("div_g2"),
37 title
: 'High and Low Temperatures (30-day average)',
38 ylabel
: 'Temperature (F)',
39 xlabel
: 'Date (Ticks indicate the start of the indicated time period)',
41 'text-align': 'right',