X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=93e0c3abc49b89495d5e7fa4fcb5a57919192fa1;hb=a49c164ae4b251553a87517ef7d1dc57f3f2ad4c;hp=e766e8f54fcf4d3b86e25244feb7dce3f572508d;hpb=06682812a5dee4f35ff02be8fab630ca722edc81;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); } };