X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=93e0c3abc49b89495d5e7fa4fcb5a57919192fa1;hb=a49c164ae4b251553a87517ef7d1dc57f3f2ad4c;hp=cf94818ce00ef19fa13202637730b555aa1a194a;hpb=30a5cfc6c8dfe0ff412e63498eac09d31e9004a7;p=dygraphs.git diff --git a/dygraph-layout.js b/dygraph-layout.js index cf94818..93e0c3a 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -222,9 +222,7 @@ 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'); - var boundaryIdStart = this.dygraph_.getLeftBoundary_(); for (var setIdx = 0; setIdx < this.points.length; setIdx++) { var points = this.points[setIdx]; var setName = this.setNames[setIdx]; @@ -253,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); } };