Use percent-formatter for stack+percentage graph

This commit is contained in:
Stefan Siegl
2015-12-15 17:32:52 +01:00
committed by carl bergquist
parent f355f36d09
commit ce2ae31950
+2 -2
View File
@@ -380,11 +380,11 @@ function (angular, $, moment, _, kbn, GraphTooltip) {
options.yaxes.push(secondY);
applyLogScale(options.yaxes[1], data);
configureAxisMode(options.yaxes[1], scope.panel.y_formats[1]);
configureAxisMode(options.yaxes[1], scope.panel.percentage && scope.panel.stack ? "percent" : scope.panel.y_formats[1]);
}
applyLogScale(options.yaxes[0], data);
configureAxisMode(options.yaxes[0], scope.panel.y_formats[0]);
configureAxisMode(options.yaxes[0], scope.panel.percentage && scope.panel.stack ? "percent" : scope.panel.y_formats[0]);
}
function applyLogScale(axis, data) {