export const plugins = [{
beforeDraw(chart: any) {
const { width } = chart;
const { height } = chart;
const { ctx } = chart;
ctx.restore();
const fontSize = (height / 200).toFixed(2);
ctx.font = `${fontSize}em sans-serif`;
ctx.textBaseline = "top";
const text: string = "Foo- coo";
const textX = Math.round((width - ctx.measureText(text).width) / 2);
const textY = height / 2.4;
ctx.fillText(text, textX, textY);
ctx.save();
},
},]