瀏覽代碼

fix in to not render multiple labels

Peter Holmberg 7 年之前
父節點
當前提交
9163db02b4
共有 1 個文件被更改,包括 1 次插入1 次删除
  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>")