mirror of https://github.com/grafana/grafana.git
fix(graph): fixed issue log base scale on right y axis, option was not applied at all, also issue with log scale and max value calculation fixed, fixes #6534
This commit is contained in:
parent
316d754a21
commit
6767bdd76d
|
@ -1,6 +1,7 @@
|
||||||
# 4.0-beta2 (unrelased)
|
# 4.0-beta2 (unrelased)
|
||||||
|
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
|
* **Graph Panel**: Log base scale on right Y-axis had no effect, max value calc was not applied, [#6534](https://github.com/grafana/grafana/issues/6534)
|
||||||
* **Graph Panel**: Bar width if bars was only used in series override, [#6528](https://github.com/grafana/grafana/issues/6528)
|
* **Graph Panel**: Bar width if bars was only used in series override, [#6528](https://github.com/grafana/grafana/issues/6528)
|
||||||
* **UI/Browser**: Fixed issue with page/view header gradient border not showing in Safari, [#6530](https://github.com/grafana/grafana/issues/6530)
|
* **UI/Browser**: Fixed issue with page/view header gradient border not showing in Safari, [#6530](https://github.com/grafana/grafana/issues/6530)
|
||||||
|
|
||||||
|
|
|
@ -460,7 +460,7 @@ module.directive('grafanaGraph', function($rootScope, timeSrv) {
|
||||||
show: panel.yaxes[0].show,
|
show: panel.yaxes[0].show,
|
||||||
index: 1,
|
index: 1,
|
||||||
logBase: panel.yaxes[0].logBase || 1,
|
logBase: panel.yaxes[0].logBase || 1,
|
||||||
max: 100, // correct later
|
max: null
|
||||||
};
|
};
|
||||||
|
|
||||||
options.yaxes.push(defaults);
|
options.yaxes.push(defaults);
|
||||||
|
@ -472,6 +472,8 @@ module.directive('grafanaGraph', function($rootScope, timeSrv) {
|
||||||
secondY.logBase = panel.yaxes[1].logBase || 1;
|
secondY.logBase = panel.yaxes[1].logBase || 1;
|
||||||
secondY.position = 'right';
|
secondY.position = 'right';
|
||||||
options.yaxes.push(secondY);
|
options.yaxes.push(secondY);
|
||||||
|
|
||||||
|
applyLogScale(options.yaxes[1], data);
|
||||||
configureAxisMode(options.yaxes[1], panel.percentage && panel.stack ? "percent" : panel.yaxes[1].format);
|
configureAxisMode(options.yaxes[1], panel.percentage && panel.stack ? "percent" : panel.yaxes[1].format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue