projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make setAnnotations' boolean parameter optional. (#851)
[dygraphs.git]
/
gallery
/
temperature-sf-ny.js
diff --git
a/gallery/temperature-sf-ny.js
b/gallery/temperature-sf-ny.js
index
d903b8b
..
7e41310
100644
(file)
--- a/
gallery/temperature-sf-ny.js
+++ b/
gallery/temperature-sf-ny.js
@@
-1,3
+1,5
@@
+/*global Gallery,Dygraph,data */
+/*global data_temp */
Gallery.register(
// Get a better name.
'temperature-sf-ny',
Gallery.register(
// Get a better name.
'temperature-sf-ny',
@@
-6,14
+8,15
@@
Gallery.register(
title: 'Demo of a graph with many data points and custom error bars.',
setup: function(parent) {
parent.innerHTML = [
title: 'Demo of a graph with many data points and custom error bars.',
setup: function(parent) {
parent.innerHTML = [
+ "<style>.dygraph-legend { text-align: right; }</style>",
"<p>Roll period of 14 timesteps.</p>",
"<p>Roll period of 14 timesteps.</p>",
- "<div id='roll14' style='width:
800px; height:32
0px;'></div>",
+ "<div id='roll14' style='width:
600px; height:30
0px;'></div>",
"<p>No roll period.</p>",
"<p>No roll period.</p>",
- "<div id='noroll' style='width:
800px; height:32
0px;'></div>"]
+ "<div id='noroll' style='width:
600px; height:30
0px;'></div>"]
.join("\n");
},
run: function() {
.join("\n");
},
run: function() {
-
g1 =
new Dygraph(
+ new Dygraph(
document.getElementById("noroll"),
data_temp,
{
document.getElementById("noroll"),
data_temp,
{
@@
-21,10
+24,9
@@
Gallery.register(
title: 'Daily Temperatures in New York vs. San Francisco',
ylabel: 'Temperature (F)',
legend: 'always',
title: 'Daily Temperatures in New York vs. San Francisco',
ylabel: 'Temperature (F)',
legend: 'always',
- labelsDivStyles: { 'textAlign': 'right' }
}
);
}
);
-
g2 =
new Dygraph(
+ new Dygraph(
document.getElementById("roll14"),
data_temp,
{
document.getElementById("roll14"),
data_temp,
{
@@
-34,8
+36,7
@@
Gallery.register(
title: 'Daily Temperatures in New York vs. San Francisco',
ylabel: 'Temperature (F)',
legend: 'always',
title: 'Daily Temperatures in New York vs. San Francisco',
ylabel: 'Temperature (F)',
legend: 'always',
- labelsDivStyles: { 'textAlign': 'right' }
}
);
}
}
);
}
- });
\ No newline at end of file
+ });