legenda bez 0 w wykresach
This commit is contained in:
@@ -44,7 +44,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
position: 'top',
|
||||
labels: {
|
||||
filter: function(legendItem, chart) {
|
||||
const data = chart.chart.data.datasets[legendItem.datasetIndex].data;
|
||||
const data = chart.data.datasets[legendItem.datasetIndex].data;
|
||||
return data.some(value => value !== 0);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user