fix in to not render multiple labels

This commit is contained in:
Peter Holmberg
2018-11-09 14:32:14 +01:00
parent b536a9f760
commit 9163db02b4

View File

@@ -583,7 +583,7 @@
* @param {Number} [a] the angle of the value drawn
*/
function drawText(x, y, id, text, textOptions, a) {
var span = $("." + id, placeholder);
var span = $(placeholder).find("#" + id);
var exists = span.length;
if (!exists) {
span = $("<span></span>")