Jelajahi Sumber

Graph: Fix for tooltip current value decimal precision when 'none' axis format was selected, Closes #733

Torkel Ödegaard 11 tahun lalu
induk
melakukan
39c068bd53
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      CHANGELOG.md
  2. 1 1
      src/app/directives/grafanaGraph.js

+ 1 - 0
CHANGELOG.md

@@ -19,6 +19,7 @@
 
 **Fixes**
 - [Issue #696](https://github.com/grafana/grafana/issues/696). Graph: Fix for y-axis format 'none' when values are in scientific notation (ex 2.3e-13)
+- [Issue #733](https://github.com/grafana/grafana/issues/733). Graph: Fix for tooltip current value decimal precision when 'none' axis format was selected
 - [Issue #697](https://github.com/grafana/grafana/issues/697). Graphite: Fix for Glob syntax in graphite queries ([1-9] and ?) that made the query editor / parser bail and fallback to a text box.
 - [Issue #277](https://github.com/grafana/grafana/issues/277). Dashboard: Fix for timepicker date & tooltip when UTC timezone selected.
 - [Issue #699](https://github.com/grafana/grafana/issues/699). Dashboard: Fix for bug when adding rows from dashboard settings dialog.

+ 1 - 1
src/app/directives/grafanaGraph.js

@@ -355,7 +355,7 @@ function (angular, $, kbn, moment, _) {
               value = item.datapoint[1];
             }
 
-            value = kbn.getFormatFunction(format, 2)(value);
+            value = kbn.getFormatFunction(format, 2)(value, item.series.yaxis);
             timestamp = dashboard.formatDate(item.datapoint[0]);
 
             $tooltip.html(group + value + " @ " + timestamp).place_tt(pos.pageX, pos.pageY);