+/*global Gallery,Dygraph,data */
Gallery.register(
'highlighted-region',
{
name: 'Highlighted Region',
title: 'Draws a time series with an unusual region highlighted',
setup: function(parent) {
- parent.innerHTML =
- "<div id='div_g' style='width:600px; height:300px;'></div>" +
- "<p>When you zoom and pan, the region remains highlighted.</p>";
+ parent.innerHTML = [
+ "<div id='div_g' style='width:600px; height:300px;'></div>",
+ "<p>When you zoom and pan, the region remains highlighted.</p>"].join("\n");
},
run: function() {
// A basic sinusoidal data series.
data[i][2] += 5.0;
}
- var g = new Dygraph(
+ new Dygraph(
document.getElementById("div_g"),
data,
{