+/*global Gallery,Dygraph,data */
+/*global data_temp */
Gallery.register(
// Get a better name.
'temperature-sf-ny',
setup: function(parent) {
parent.innerHTML = [
"<p>Roll period of 14 timesteps.</p>",
- "<div id='roll14' style='width:800px; height:320px;'></div>",
+ "<div id='roll14' style='width:600px; height:300px;'></div>",
"<p>No roll period.</p>",
- "<div id='noroll' style='width:800px; height:320px;'></div>"]
+ "<div id='noroll' style='width:600px; height:300px;'></div>"]
.join("\n");
},
run: function() {
- g1 = new Dygraph(
+ new Dygraph(
document.getElementById("noroll"),
data_temp,
{
labelsDivStyles: { 'textAlign': 'right' }
}
);
- g2 = new Dygraph(
+ new Dygraph(
document.getElementById("roll14"),
data_temp,
{
}
);
}
- });
\ No newline at end of file
+ });