ux(dashboard): varius dashboard ux fixes and keybinding improvements, press 'e' while hovering over panel will open dashboard in edit mode, pressing 'd' will remove panel, #6442

This commit is contained in:
Torkel Ödegaard
2016-11-02 15:16:48 +01:00
parent 19509d1e7a
commit 95e7ead89b
13 changed files with 162 additions and 19 deletions

View File

@@ -12,6 +12,10 @@ function ($, _) {
var $tooltip = $('<div id="tooltip" class="graph-tooltip">');
this.destroy = function() {
$tooltip.remove();
};
this.findHoverIndexFromDataPoints = function(posX, series, last) {
var ps = series.datapoints.pointsize;
var initial = last*ps;