X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-canvas.js;h=9a162db0032d2971273de229b174a4a9f72d7ef8;hb=f35016e8b97d39691777a8ad850bfa314e7e223a;hp=f08210d8b235b07a7a76d902836ac27d154ef0bc;hpb=f9414b1136d170bf7c8f6b89000907007bb426e8;p=dygraphs.git diff --git a/dygraph-canvas.js b/dygraph-canvas.js index f08210d..9a162db 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -662,12 +662,10 @@ DygraphCanvasRenderer.prototype._renderLineChart = function() { // TODO(danvk): here if (stepPlot) { - var newYs = [ prevY - point.errorPlus * yscale, - prevY + point.errorMinus * yscale ]; + var newYs = [ point.y_bottom, point.y_top ]; prevY = point.y; } else { - var newYs = [ point.y - point.errorPlus * yscale, - point.y + point.errorMinus * yscale ]; + var newYs = [ point.y_bottom, point.y_top ]; } newYs[0] = this.area.h * newYs[0] + this.area.y; newYs[1] = this.area.h * newYs[1] + this.area.y;