Просмотр исходного кода

moved the query color to a header, with a similarly colored title for the series

Spencer Alger 12 лет назад
Родитель
Сommit
6227cfdb70
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      panels/histogram/module.js

+ 4 - 1
panels/histogram/module.js

@@ -429,7 +429,10 @@ angular.module('kibana.histogram', [])
         if (item) {
           $tooltip
             .html(
-              kbn.query_color_dot(item.series.color, 15) + ' ' +
+              '<small style="font-size:0.9em;color:'+item.series.color+'">' +
+                '<i class="icon-circle"></i>' + ' ' +
+                (item.series.info.alias || item.series.info.query) +
+              '</small><br>' +
               item.datapoint[1].toFixed(0) + " @ " +
               moment(item.datapoint[0]).format('MM/DD HH:mm:ss')
             )