Browse Source

fix in to not render multiple labels

Peter Holmberg 7 years ago
parent
commit
9163db02b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/vendor/flot/jquery.flot.gauge.js

+ 1 - 1
public/vendor/flot/jquery.flot.gauge.js

@@ -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>")