diff --git a/src/app/directives/grafanaGraph.tooltip.js b/src/app/directives/grafanaGraph.tooltip.js
index 0d8fafe498a..9c98643a20e 100644
--- a/src/app/directives/grafanaGraph.tooltip.js
+++ b/src/app/directives/grafanaGraph.tooltip.js
@@ -29,6 +29,12 @@ function ($, kbn) {
return j - 1;
}
+ function showTooltip(title, innerHtml, pos) {
+ var body = '
';
+ $tooltip.html(body).place_tt(pos.pageX + 20, pos.pageY);
+ }
+
elem.bind("plothover", function (event, pos, item) {
var plot = elem.data().plot;
var data = plot.getData();
@@ -46,8 +52,10 @@ function ($, kbn) {
var pointCount = data[0].data.length;
for (i = 1; i < data.length; i++) {
if (data[i].data.length !== pointCount) {
- console.log('WARNING: tootltip shared can not be shown becouse of series points do not align, different point counts');
- $tooltip.detach();
+ showTooltip('Shared tooltip error', '' +
+ '- Series point counts are not the same
' +
+ '- Set null point mode to null or null as zero
' +
+ '- For influxdb users set fill(0) in your query
', pos);
return;
}
}
@@ -91,22 +99,13 @@ function ($, kbn) {
plot.highlight(i, hoverIndex);
}
- $tooltip.html('')
- .place_tt(pos.pageX + 20, pos.pageY);
+ showTooltip(timestamp, seriesHtml, pos);
return;
}
if (item) {
seriesInfo = item.series.info;
format = scope.panel.y_formats[seriesInfo.yaxis - 1];
-
- if (seriesInfo.alias) {
- group = '' +
- '' + ' ' +
- seriesInfo.alias +
- '
';
- } else {
- group = kbn.query_color_dot(item.series.color, 15) + ' ';
- }
+ group = ' ' + seriesInfo.alias;
if (scope.panel.stack && scope.panel.tooltip.value_type === 'individual') {
value = item.datapoint[1] - item.datapoint[2];
@@ -117,8 +116,9 @@ function ($, kbn) {
value = kbn.valueFormats[format](value, item.series.yaxis.tickDecimals);
timestamp = dashboard.formatDate(item.datapoint[0]);
+ group += ': ' + value + '';
- $tooltip.html(group + value + " @ " + timestamp).place_tt(pos.pageX, pos.pageY);
+ showTooltip(timestamp, group, pos);
} else {
$tooltip.detach();
}
diff --git a/tasks/options/requirejs.js b/tasks/options/requirejs.js
index c1a718c3397..a5e9008ac3c 100644
--- a/tasks/options/requirejs.js
+++ b/tasks/options/requirejs.js
@@ -59,7 +59,6 @@ module.exports = function(config,grunt) {
'services/all',
'angular-strap',
'directives/all',
- 'jquery.flot.pie',
'angular-dragdrop',
'controllers/all',
'routes/all',