// clients. Exporting a symbols forces the Closure Compiler to preserve it in
// the minified JS (symbols not in this list are mangled).
+/*global Dygraph:false, goog:false */
+
goog.exportSymbol('Dygraph', Dygraph);
goog.exportSymbol('Dygraph.prototype.adjustRoll', Dygraph.prototype.adjustRoll);
// Create a combined series (average of all series values).
var i, j;
- var xVal, yVal;
// TODO(danvk): short-circuit if there's only one series.
var rolledSeries = [];
var yMin = Number.MAX_VALUE;
var yMax = -Number.MAX_VALUE;
for (i = 0; i < combinedSeries.length; i++) {
- yVal = combinedSeries[i][1];
+ var yVal = combinedSeries[i][1];
if (yVal !== null && isFinite(yVal) && (!logscale || yVal > 0)) {
yMin = Math.min(yMin, yVal);
yMax = Math.max(yMax, yVal);