4 name
: 'CSS label styling',
5 title
: 'Each chart label is styled independently with CSS',
6 setup
: function(parent
) {
8 "<p class='infotext'>This chart's labels are styled</p>",
9 "<div class='chart' id='div_g' style='width:600px; height:300px;'></div>",
10 "<p class='infotext'>This version of the chart uses the default styles:</p>",
11 "<div class='chart' id='div_g2' style='width:600px; height:300px;'></div>"].join("\n");
15 document
.getElementById("div_g"),
19 title
: 'High and Low Temperatures',
21 ylabel
: 'Temperature (F)',
22 xlabel
: 'Date (Ticks indicate the start of the indicated time period)',
24 'text-align': 'right',
32 document
.getElementById("div_g2"),
36 title
: 'High and Low Temperatures (30-day average)',
37 ylabel
: 'Temperature (F)',
38 xlabel
: 'Date (Ticks indicate the start of the indicated time period)',
40 'text-align': 'right',