Browse Source

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

Spencer Alger 12 years ago
parent
commit
6227cfdb70
1 changed files with 4 additions and 1 deletions
  1. 4 1
      panels/histogram/module.js

+ 4 - 1
panels/histogram/module.js

@@ -429,7 +429,10 @@ angular.module('kibana.histogram', [])
         if (item) {
         if (item) {
           $tooltip
           $tooltip
             .html(
             .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) + " @ " +
               item.datapoint[1].toFixed(0) + " @ " +
               moment(item.datapoint[0]).format('MM/DD HH:mm:ss')
               moment(item.datapoint[0]).format('MM/DD HH:mm:ss')
             )
             )