chartjs / chartjs/Chart.js

Line Chart backgroundColor looks scratched when assigning segment borderColor, 200~ points on dataset

Open
#11,409 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

Line background should be continuous.

![chart1](https://github.com/chartjs/Chart.js/assets/11019271/6bf64147-380e-4c46-8bcb-b74de0ad5965)

### Current behavior

![chart2](https://github.com/chartjs/Chart.js/assets/11019271/1d0b7871-dfd2-4ef6-aee6-931157b2f506)

When defining segment color inside a dataset with 200~ elements, background looks like sliced.

### Reproducible sample

https://codepen.io/Alejgolop/pen/vYQRvmd

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

4.3.0

### Browser name and version

Google Chrome V 114.0.5735.199

### Link to your project

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