- parent.innerHTML =
- "<p class='infotext'>This chart's labels are styled</p>" +
- "<div class='chart' id='div_g' style='width:600px; height:300px;'></div>" +
- "<p class='infotext'>This version of the chart uses the default styles:</p>" +
- "<div class='chart' id='div_g2' style='width:600px; height:300px;'></div>";
+ parent.innerHTML = [
+ "<style>.dygraph-legend { text-align: right; background: none; }</style>",
+ "<p class='infotext'>This chart's labels are styled</p>",
+ "<div class='chart' id='div_g' style='width:600px; height:300px;'></div>",
+ "<p class='infotext'>This version of the chart uses the default styles:</p>",
+ "<div class='chart' id='div_g2' style='width:600px; height:300px;'></div>"].join("\n");