Cannot add multiple colours to the line chart
- Dominant language
- JavaScript
- Stars
- 67.7k
- Forks
- 11.9k
- Avg merge
- 7h 39m
- Merged PRs (30d)
- 5
Description
### Expected behavior
Should be able to give two colors for a single line graph or join multiple line graphs into one
### Current behavior
I want to add two different colours for the line graph. I tried passing an array of colours to borderColor but it is not working. I tried creating 2 lines but then those lines are showing separately.
Link for both the code pen
https://codepen.io/dolly-c/pen/qBJboXa
https://codepen.io/dolly-c/pen/poxgLeY
### Reproducible sample
https://codepen.io/dolly-c/pen/poxgLeY,
### Optional extra steps/info to reproduce
_No response_
### Possible solution
_No response_
### Context
_No response_
### chart.js version
v4.2.1
### Browser name and version
_No response_
### Link to your project
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.