Skip to content

Commit

Permalink
main: hide legend on hosts graph if there are too many backends
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jul 10, 2023
1 parent 6c65ee7 commit ba2eaba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/main.tt
Original file line number Diff line number Diff line change
Expand Up @@ -375,18 +375,18 @@ function initGraphs() {
value: function(value, ratio, id) { return value; }
}
},
/*
color: {
pattern: ['var(--dashboard-series-1','var(--dashboard-series-2)']
},
*/
size: {
height: 210
},
interaction: {
enabled: true,
brighten: false //DOESNT WORK FOR SOME REASON
},
[% IF backend_stats.enabled - backend_stats.down > 20 %]
legend: {
hide: true,
},
[% END %]
bindto: "#hostloc-pieChart"
});
[% END %]
Expand Down

0 comments on commit ba2eaba

Please sign in to comment.