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