+/*global Gallery,Dygraph,data */
+/*global stockData */
Gallery.register(
'stock',
{
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;
};
+ linear.onclick = function() { setLog(false); };
+ log.onclick = function() { setLog(true); };
}
});