projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #625 from kkirsche/patch-1
[dygraphs.git]
/
gallery
/
stock.js
diff --git
a/gallery/stock.js
b/gallery/stock.js
index
4c6af6d
..
ad7319e
100644
(file)
--- a/
gallery/stock.js
+++ b/
gallery/stock.js
@@
-1,3
+1,5
@@
+/*global Gallery,Dygraph,data */
+/*global stockData */
Gallery.register(
'stock',
{
Gallery.register(
'stock',
{
@@
-17,15
+19,15
@@
Gallery.register(
customBars: true,
logscale: true
});
customBars: true,
logscale: true
});
-
+
var linear = document.getElementById("linear");
var log = document.getElementById("log");
var linear = document.getElementById("linear");
var log = document.getElementById("log");
- linear.onclick = function() { setLog(false); }
- log.onclick = function() { setLog(true); }
var setLog = function(val) {
g.updateOptions({ logscale: val });
linear.disabled = !val;
log.disabled = val;
var setLog = function(val) {
g.updateOptions({ logscale: val });
linear.disabled = !val;
log.disabled = val;
- }
+ };
+ linear.onclick = function() { setLog(false); };
+ log.onclick = function() { setLog(true); };
}
}
- });
\ No newline at end of file
+ });