Skip to content

Commit

Permalink
chore: removed obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Sep 2, 2024
1 parent 41c070c commit 8c6231d
Showing 1 changed file with 0 additions and 72 deletions.
72 changes: 0 additions & 72 deletions views/default/advanced_statistics/charts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,78 +18,6 @@ var advancedStatistics = {
}
});
});


return;




















var $elem = $(selector);
var data = $elem.data();
if (data.initialized) {
return;
}

if (!$elem.is(':visible')) {
return;
}

var ctx = $elem.getContext('2d');

switch (data.chartType) {
case 'pie':
var chart = new Chart(ctx, {
type: data.chartType,
data: data.chartData,
options: {
maintainAspectRatio: false,
plugins: {
legend: {
display: false,
},
},
}
});
break;
case 'bar':
var chart = new Chart(ctx, {
type: data.chartType,
data: data.chartData,
options: {
maintainAspectRatio: false,
plugins: {
legend: {
display: false,
},
},
scales: {
y: {
beginAtZero: true,
},
}
},
});
break;
}

$elem.data('initialized', true);
}
};

Expand Down

0 comments on commit 8c6231d

Please sign in to comment.