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 "<style>.dygraph-legend { text-align: right; background: none; }</style>",
10 "<p class='infotext'>This chart's labels are styled</p>",
11 "<div class='chart' id='div_g' style='width:600px; height:300px;'></div>",
12 "<p class='infotext'>This version of the chart uses the default styles:</p>",
13 "<div class='chart' id='div_g2' style='width:600px; height:300px;'></div>"].join("\n");
17 document
.getElementById("div_g"),
21 title
: 'High and Low Temperatures',
23 ylabel
: 'Temperature (F)',
24 xlabel
: 'Date (Ticks indicate the start of the indicated time period)',
30 document
.getElementById("div_g2"),
34 title
: 'High and Low Temperatures (30-day average)',
35 ylabel
: 'Temperature (F)',
36 xlabel
: 'Date (Ticks indicate the start of the indicated time period)',