|
|
@@ -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);
|