Skip to content

Filler plugin draws on full chart area with stacked scales #12052

Closed
@ZielaA

Description

@ZielaA

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 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions