refactoring

This commit is contained in:
frankknoll
2022-03-15 11:52:42 +01:00
parent dbafd3323b
commit 4eb3d7ccc2

View File

@@ -44,13 +44,7 @@ class FreeBedsChartView {
chart.ctx.restore();
}
return {
beforeDraw: chart => {
if (chart.config.options.chartArea) {
drawTrafficLights(chart);
}
}
};
return { beforeDraw: drawTrafficLights };
}
#getData(data) {
@@ -70,8 +64,6 @@ class FreeBedsChartView {
#getOptions(title) {
return {
chartArea: {
},
plugins: {
title: {
display: true,