|
@ -249,7 +249,7 @@ Graph3d.prototype._setBackgroundColor = function(backgroundColor) { |
|
|
// use use defaults
|
|
|
// use use defaults
|
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
throw 'Unsupported type of backgroundColor'; |
|
|
|
|
|
|
|
|
throw new Error('Unsupported type of backgroundColor'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.frame.style.backgroundColor = fill; |
|
|
this.frame.style.backgroundColor = fill; |
|
@ -333,7 +333,7 @@ Graph3d.prototype._determineColumnIndexes = function(data, style) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
throw 'Unknown style "' + this.style + '"'; |
|
|
|
|
|
|
|
|
throw new Error('Unknown style "' + this.style + '"'); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -702,7 +702,7 @@ Graph3d.prototype._resizeCanvas = function() { |
|
|
*/ |
|
|
*/ |
|
|
Graph3d.prototype.animationStart = function() { |
|
|
Graph3d.prototype.animationStart = function() { |
|
|
if (!this.frame.filter || !this.frame.filter.slider) |
|
|
if (!this.frame.filter || !this.frame.filter.slider) |
|
|
throw 'No animation available'; |
|
|
|
|
|
|
|
|
throw new Error('No animation available'); |
|
|
|
|
|
|
|
|
this.frame.filter.slider.play(); |
|
|
this.frame.filter.slider.play(); |
|
|
}; |
|
|
}; |
|
@ -937,7 +937,7 @@ Graph3d.prototype.setOptions = function (options) { |
|
|
*/ |
|
|
*/ |
|
|
Graph3d.prototype.redraw = function() { |
|
|
Graph3d.prototype.redraw = function() { |
|
|
if (this.dataPoints === undefined) { |
|
|
if (this.dataPoints === undefined) { |
|
|
throw 'Error: graph data not initialized'; |
|
|
|
|
|
|
|
|
throw new Error('Graph data not initialized'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this._resizeCanvas(); |
|
|
this._resizeCanvas(); |
|
|