]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
fix: respect dataset clipping area when filling line charts (#12057)
authorAdrian Cerbaro <adriancerbaro@gmail.com>
Mon, 14 Apr 2025 13:41:14 +0000 (10:41 -0300)
committerGitHub <noreply@github.com>
Mon, 14 Apr 2025 13:41:14 +0000 (15:41 +0200)
commit3dffb4fb8ebb529c0447d0ed6aa7e08479a591ed
tree78841c4c997a4b81baa624163444b961f866d413
parenta647e0d007ff43e9ddc397603cc9ba1547ca0791
fix: respect dataset clipping area when filling line charts (#12057)

* 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
13 files changed:
src/core/core.controller.js
src/helpers/helpers.dataset.ts [new file with mode: 0644]
src/helpers/index.ts
src/plugins/plugin.filler/filler.drawing.js
src/types/index.d.ts
test/fixtures/plugin.filler/line/dataset/clip-bounds-x-off.js [new file with mode: 0644]
test/fixtures/plugin.filler/line/dataset/clip-bounds-x-off.png [new file with mode: 0644]
test/fixtures/plugin.filler/line/dataset/clip-bounds-x.js [new file with mode: 0644]
test/fixtures/plugin.filler/line/dataset/clip-bounds-x.png [new file with mode: 0644]
test/fixtures/plugin.filler/line/dataset/clip-bounds-y-off.js [new file with mode: 0644]
test/fixtures/plugin.filler/line/dataset/clip-bounds-y-off.png [new file with mode: 0644]
test/fixtures/plugin.filler/line/dataset/clip-bounds-y.js [new file with mode: 0644]
test/fixtures/plugin.filler/line/dataset/clip-bounds-y.png [new file with mode: 0644]