Skip to content

Commit

Permalink
Merge pull request #1285 from jpwhite4/legenditem
Browse files Browse the repository at this point in the history
Fix bug in highchart wrapper code.
  • Loading branch information
jpwhite4 authored Apr 16, 2020
2 parents 95b8c4c + b8dbddf commit 25a4d88
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions html/gui/js/HighChartWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ XDMoD.utils.createChart = function (chartOptions, extraHandlers) {

for (var i = 0; i < this.series.length; i++) {
var series = this.series[i];
if (!series.options.isRestrictedByRoles) {
continue;
if (series.options.isRestrictedByRoles && series.legendItem) {
this.options.chart.events.helperFunctions.addBackgroundColor(series.legendItem, '#DFDFDF');
}

this.options.chart.events.helperFunctions.addBackgroundColor(series.legendItem, '#DFDFDF');
}
}
],
Expand Down

0 comments on commit 25a4d88

Please sign in to comment.