X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=93e0c3abc49b89495d5e7fa4fcb5a57919192fa1;hb=802b882080f865d36b471e6c011841d86ec79d82;hp=e766e8f54fcf4d3b86e25244feb7dce3f572508d;hpb=d7b9859046b35285abc989d2cbd82cb63f06cb52;p=dygraphs.git diff --git a/dygraph-layout.js b/dygraph-layout.js index e766e8f..93e0c3a 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -222,7 +222,6 @@ DygraphLayout._calcYNormal = function(axis, value, logscale) { DygraphLayout.prototype._evaluateLineCharts = function() { var connectSeparated = this.attr_('connectSeparatedPoints'); var isStacked = this.attr_("stackedGraph"); - var hasBars = this.attr_('errorBars') || this.attr_('customBars'); for (var setIdx = 0; setIdx < this.points.length; setIdx++) { var points = this.points[setIdx]; @@ -252,14 +251,9 @@ DygraphLayout.prototype._evaluateLineCharts = function() { } } point.y = DygraphLayout._calcYNormal(axis, yval, logscale); - - if (hasBars) { - point.y_top = DygraphLayout._calcYNormal( - axis, yval - point.yval_minus, logscale); - point.y_bottom = DygraphLayout._calcYNormal( - axis, yval + point.yval_plus, logscale); - } } + + this.dygraph_.dataHandler_.onLineEvaluated(points, axis, logscale); } };