Dygraph.prototype.extractSeries_ = function(rawData, i, logScale) {
// TODO(danvk): pre-allocate series here.
var series = [];
+ var errorBars = this.attr_("errorBars");
+ var customBars = this.attr_("customBars");
for (var j = 0; j < rawData.length; j++) {
var x = rawData[j][0];
var point = rawData[j][i];
}
}
// Fix null points to fit the display type standard.
- if(point === null && this.attr_("errorBars")){
+ if(point === null && errorBars){
series.push([x, [null,null]]);
- }else if(point === null && this.attr_("customBars")){
+ }else if(point === null && customBars){
series.push([x, [null,null,null]]);
} else {
series.push([x, point]);