Commit e8d01218 by Denis Doria Committed by Torkel Ödegaard

Fix label showing up when Axes are configured to not be displayed (#8697)

This should close the issue #8695
parent 5aac2d20
......@@ -145,14 +145,14 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) {
}
// add left axis labels
if (panel.yaxes[0].label) {
if (panel.yaxes[0].label && panel.yaxes[0].show) {
var yaxisLabel = $("<div class='axisLabel left-yaxis-label flot-temp-elem'></div>")
.text(panel.yaxes[0].label)
.appendTo(elem);
}
// add right axis labels
if (panel.yaxes[1].label) {
if (panel.yaxes[1].label && panel.yaxes[1].show) {
var rightLabel = $("<div class='axisLabel right-yaxis-label flot-temp-elem'></div>")
.text(panel.yaxes[1].label)
.appendTo(elem);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment