refactoring
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user