From: Dan Vanderkam Date: Thu, 17 Dec 2009 16:11:08 +0000 (-0800) Subject: log a warning when fillGraph is used with errorBars X-Git-Tag: v1.0.0~765 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=6a834bbbfd2678a53a35f0b9616cfa13e971bc1c;p=dygraphs.git log a warning when fillGraph is used with errorBars --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 3db31a7..8cadd2d 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -468,6 +468,10 @@ DygraphCanvasRenderer.prototype._renderLineChart = function() { var ctx = context; if (errorBars) { + if (fillGraph) { + this.dygraph_.warn("Can't use fillGraph option with error bars"); + } + for (var i = 0; i < setCount; i++) { var setName = setNames[i]; var color = colorScheme[i % colorCount];