You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file filler.drawing.js in function clipBounds change the drawing area
from const {top, bottom} = scale.chart.chartArea;
to const {top, bottom} = scale;
Context
No response
chart.js version
4.4.0
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered:
…harts
The filling area must respect the dataset's clipping area when clipping is enabled. Before this change, the line would be clipped according to the dataset's area but the fill would overlap other datasets.
Closeschartjs#12052
* fix(plugin.filler): respect dataset clipping area when filling line charts
The filling area must respect the dataset's clipping area when clipping is enabled. Before this change, the line would be clipped according to the dataset's area but the fill would overlap other datasets.
Closes#12052
* chore(plugin.filler): use @ts-expect-error instead of @ts-ignore
Expected behavior
Fill area should be clipped to the top/bottom of the scale that the dataset is associated to.
Current behavior
Fill area is drawn on full chart area, regardless the scale boundaries.
Reproducible sample
https://codepen.io/ZielaA/pen/XJWoJEw
Optional extra steps/info to reproduce
No response
Possible solution
In file filler.drawing.js in function
clipBounds
change the drawing areafrom
const {top, bottom} = scale.chart.chartArea;
to
const {top, bottom} = scale;
Context
No response
chart.js version
4.4.0
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: