Skip to content

fix: respect dataset clipping area when filling line charts #12057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

adrianbrs
Copy link
Contributor

@adrianbrs adrianbrs commented Apr 13, 2025

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

Before:
image

After:
image

Clip disabled:
image

I'm also considering cases where the datasets are distributed horizontally.

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

Closes chartjs#12052
@LeeLenaleee LeeLenaleee added this to the Version 4.4.9 milestone Apr 14, 2025
@LeeLenaleee LeeLenaleee merged commit 3dffb4f into chartjs:master Apr 14, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filler plugin draws on full chart area with stacked scales
3 participants