log a warning when fillGraph is used with errorBars
authorDan Vanderkam <danvk@google.com>
Thu, 17 Dec 2009 16:11:08 +0000 (08:11 -0800)
committerDan Vanderkam <danvk@google.com>
Thu, 17 Dec 2009 16:11:08 +0000 (08:11 -0800)
dygraph-canvas.js

index 3db31a7..8cadd2d 100644 (file)
@@ -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];