chartjs / chartjs/Chart.js

Vertical line chart fill above not working

Open
#11,630 1 comment 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

Vertical line chart fill above not working. I am trying to fill 2 colors between 2 lines using the fill object, but the 'above' property is not working, and the chart is filled with the 'below' color.

### Current behavior

It works as expected in horizontal lines, but when the line chart is vertical using ```indexAxis: 'y'``` the filler colors for above and below are not working, and both sides are filled with the 'below' color.

### Reproducible sample

https://codepen.io/sganis/pen/LYaNbey

### chart.js version

v4.4.1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.