ai.timefold.solver.benchmark.impl.report.shared-background.js.ftl Maven / Gradle / Ivy
plugins: [{ <#-- Make sure the canvas is not transparent when exported. -->
id: 'customPlugin',
beforeDraw: (chart, args, options) => {
const ctx = chart.canvas.getContext('2d');
ctx.save();
ctx.globalCompositeOperation = 'destination-over';
ctx.fillStyle = 'white';
ctx.fillRect(0, 0, chart.canvas.width, chart.canvas.height);
ctx.restore();
}
}]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy