我想在世界地图插件上闪烁这个圆圈 - Grafana

时间:2021-07-09 11:11:05

标签: grafana grafana-plugin

我被这个问题困住了一段时间。谁能帮我编辑源代码?

我尝试过的:

  1. 更改 module.js 中的 css 函数
  2. 更改了主 css 文件中的 css 代码,但现在仍然不起作用

这是我认为我应该在 module.js 中修复的部分,但它仍然不起作用:

 this.legend.update = function() {
 var e = t.ctrl.data.thresholds, n = "";
 n += '<div class="legend-item"><i style="background:' + t.ctrl.panel.colors[0] + '"></i> &lt; ' + e[0] + "</div>";
 for (var i = 0; i < e.length; i += 1)
 n += '<div class="legend-item"><i style="background:' + t.ctrl.panel.colors[i + 1] + '"></i> ' + e[i] + (e[i + 1] ? "&ndash;" + e[i + 1] + "</div>" : "+"); 
t.legend._div.innerHTML = n
 }

enter image description here

0 个答案:

没有答案
相关问题