diff --git a/lib/timeline/component/LineGraph.js b/lib/timeline/component/LineGraph.js index 9d55bdee..53b85db1 100644 --- a/lib/timeline/component/LineGraph.js +++ b/lib/timeline/component/LineGraph.js @@ -191,7 +191,7 @@ LineGraph.prototype.setOptions = function(options) { this.autoSizeSVG = true; } else if (this.body.domProps.centerContainer.height !== undefined && options.graphHeight !== undefined) { - if (parseInt(options.graphHeight.replace("px",'')) < this.body.domProps.centerContainer.height) { + if (parseInt((options.graphHeight + '').replace("px",'')) < this.body.domProps.centerContainer.height) { this.autoSizeSVG = true; } }