diff --git a/src/components/figures/chart/chartJs/chartjs_show_values_plugin.ts b/src/components/figures/chart/chartJs/chartjs_show_values_plugin.ts index 149b0fc1b6..f7638aac41 100644 --- a/src/components/figures/chart/chartJs/chartjs_show_values_plugin.ts +++ b/src/components/figures/chart/chartJs/chartjs_show_values_plugin.ts @@ -32,6 +32,10 @@ export const chartShowValuesPlugin: Plugin = { } const ctx = chart.ctx as CanvasRenderingContext2D; ctx.save(); + const { left, top, height, width } = chart.chartArea; + ctx.beginPath(); + ctx.rect(left, top, width, height); + ctx.clip(); ctx.textAlign = "center"; ctx.textBaseline = "middle";