diff --git a/lib/charts/line.js b/lib/charts/line.js index c2ccec67..2d19acb9 100644 --- a/lib/charts/line.js +++ b/lib/charts/line.js @@ -384,7 +384,7 @@ * @param {object} options options json object for determin line style. */ Line.prototype.render = function () { - this.canvas.clear(); + this.canvas.remove(); this.createCanvas(); var conf = this.defaults; var linesData = this.linesData; @@ -419,7 +419,6 @@ var y = y0 - ((nodeData[j] - min) * yMatchNum); linePath = linePath + x + "," + y; - if (j < l - 1) { linePath = linePath + "L"; } @@ -502,7 +501,6 @@ $(this.node).append(this.floatTag); // if (hoverMode) { // background.mouseover(function () { - // }).mouseout(function () { // floatTag.css({"visibility" : "hidden"}); // });