chartjs / chartjs/Chart.js

How to apply gradient on the opposite side of the Line chart?

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

Description

### Feature Proposal

I can only apply the gradient below the line.

Currently the Line chart looks like this:
Screenshot 2024-05-19 at 14 33 49

#### What is the expected behavior?
The gradient appears on the opposite side of the line, meaning from the line to the top of the chart.

And I want to make the gradient like this:
(so it appears where I have drawn white lines, so it is inverted in relation to the line)
Screenshot 2024-05-19 at 14 34 11

### Possible Implementation

_No response_

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.