Skip to content

Commit 6767bdd

Browse files
committed
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 grafana#6534
1 parent 316d754 commit 6767bdd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 4.0-beta2 (unrelased)
22

33
### Bugfixes
4+
* **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)
45
* **Graph Panel**: Bar width if bars was only used in series override, [#6528](https://github.com/grafana/grafana/issues/6528)
56
* **UI/Browser**: Fixed issue with page/view header gradient border not showing in Safari, [#6530](https://github.com/grafana/grafana/issues/6530)
67

public/app/plugins/panel/graph/graph.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ module.directive('grafanaGraph', function($rootScope, timeSrv) {
460460
show: panel.yaxes[0].show,
461461
index: 1,
462462
logBase: panel.yaxes[0].logBase || 1,
463-
max: 100, // correct later
463+
max: null
464464
};
465465

466466
options.yaxes.push(defaults);
@@ -472,6 +472,8 @@ module.directive('grafanaGraph', function($rootScope, timeSrv) {
472472
secondY.logBase = panel.yaxes[1].logBase || 1;
473473
secondY.position = 'right';
474474
options.yaxes.push(secondY);
475+
476+
applyLogScale(options.yaxes[1], data);
475477
configureAxisMode(options.yaxes[1], panel.percentage && panel.stack ? "percent" : panel.yaxes[1].format);
476478
}
477479

0 commit comments

Comments
 (0)