numeric-gviz test works again
authorDan Vanderkam <danvdk@gmail.com>
Wed, 6 Oct 2010 14:18:55 +0000 (10:18 -0400)
committerDan Vanderkam <danvdk@gmail.com>
Wed, 6 Oct 2010 14:18:55 +0000 (10:18 -0400)
dygraph.js

index 074776f..4cdc196 100644 (file)
@@ -2157,6 +2157,7 @@ Dygraph.prototype.parseDataTable_ = function(data) {
   var labels = [data.getColumnLabel(0)];
   for (var i = 0; i < colIdx.length; i++) {
     labels.push(data.getColumnLabel(colIdx[i]));
+    if (this.attr_("errorBars")) i += 1;
   }
   this.attrs_.labels = labels;
   cols = labels.length;