mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tooltip should also show as bytes if needed
This commit is contained in:
parent
eecf74c1fd
commit
7256d41d3f
@ -620,6 +620,9 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
|
||||
value = (scope.panel.stack && scope.panel.tooltip.value_type === 'individual') ?
|
||||
item.datapoint[1] - item.datapoint[2] :
|
||||
item.datapoint[1];
|
||||
if(scope.panel.y_as_bytes) {
|
||||
value = kbn.byteFormat(value,2);
|
||||
}
|
||||
timestamp = scope.panel.timezone === 'browser' ?
|
||||
moment(item.datapoint[0]).format('YYYY-MM-DD HH:mm:ss') :
|
||||
moment.utc(item.datapoint[0]).format('YYYY-MM-DD HH:mm:ss');
|
||||
|
Loading…
Reference in New Issue
Block a user