diff --git a/public/app/plugins/panel/graph/graph_tooltip.js b/public/app/plugins/panel/graph/graph_tooltip.js index 0c2136f7d9d..a10a8bba68c 100644 --- a/public/app/plugins/panel/graph/graph_tooltip.js +++ b/public/app/plugins/panel/graph/graph_tooltip.js @@ -135,13 +135,13 @@ function ($) { // Dynamically reorder the hovercard for the current time point if the // option is enabled. - if (panel.tooltip.ordering === 'decreasing') { + if (panel.tooltip.sort === 2) { seriesHoverInfo.sort(function(a, b) { - return parseFloat(b.value) - parseFloat(a.value); + return b.value - a.value; }); - } else if (panel.tooltip.ordering === 'increasing') { + } else if (panel.tooltip.sort === 1) { seriesHoverInfo.sort(function(a, b) { - return parseFloat(a.value) - parseFloat(b.value); + return a.value - b.value; }); } diff --git a/public/app/plugins/panel/graph/module.ts b/public/app/plugins/panel/graph/module.ts index c7969bb6f07..b543e933b90 100644 --- a/public/app/plugins/panel/graph/module.ts +++ b/public/app/plugins/panel/graph/module.ts @@ -92,7 +92,7 @@ class GraphCtrl extends MetricsPanelCtrl { tooltip : { value_type: 'cumulative', shared: true, - ordering: 'alphabetical', + sort: 0, msResolution: false, }, // time overrides diff --git a/public/app/plugins/panel/graph/tab_display.html b/public/app/plugins/panel/graph/tab_display.html index 27bdab4635e..c9f51dc5dde 100644 --- a/public/app/plugins/panel/graph/tab_display.html +++ b/public/app/plugins/panel/graph/tab_display.html @@ -28,41 +28,39 @@ + +
- -
-
Misc options
+
Hover info
- -
- -
-
-
- +
- +
- + +
+
+
+ +
+
-
Multiple Series
+
Stacking & Null value
@@ -71,10 +69,10 @@ label="Percent" label-class="width-7" checked="ctrl.panel.percentage" on-change="ctrl.render()"> -
- -
- +
+ +
+
diff --git a/public/sass/components/_old_stuff.scss b/public/sass/components/_old_stuff.scss index bb53b657862..ccc56377748 100644 --- a/public/sass/components/_old_stuff.scss +++ b/public/sass/components/_old_stuff.scss @@ -4,7 +4,7 @@ } .section { - margin-right: 20px; + margin-right: 3rem; vertical-align: top; display: inline-block; }