diff --git a/jquery.flot.canvas.js b/jquery.flot.canvas.js index 8a9557a..d9671d5 100644 --- a/jquery.flot.canvas.js +++ b/jquery.flot.canvas.js @@ -140,7 +140,7 @@ browser, but needs to redraw with canvas text when exporting as an image. y = Math.ceil(y - 2); } - context.fillText(line.text, linex, y); + context.fillText(line.text, Math.round(linex), Math.round(y)); y += line.height; } } diff --git a/jquery.flot.js b/jquery.flot.js index 4f21497..c5f11f9 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -385,8 +385,8 @@ Licensed under the MIT license. // Move the element to its final position within the container info.element.css({ - top: parseInt(y, 10), - left: parseInt(x, 10) + top: Math.round(y), + left: Math.round(x) }); };