Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@ZielaA

Description

@ZielaA
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.