chartjs / chartjs/Chart.js

Allow border of legend not change according to the type of line in the graph

Open
#11,885 2 comments 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

Take a look at the image below. Some legends have the border line dashed/dotted just because the line in the graph is dashed/dotted. That's nice, but it would be good to be able to disable this because sometimes the legends get really weird especially when some dataset lines are thicker than others, that makes the border line of the legend also thicker and when you have many legends, they get completely confused with each one having different border line thickness. This problem also happens when I hover a line in the graph and it gets thicker, this will make the border line of the legend to get thicker which misaligns the legends. It would be nice to disable this in order to the legends have fixed line thickness and be completely solid instead of using dashed/dotted.

![image](https://github.com/user-attachments/assets/6668bf22-e37b-4d28-a617-9650c05b37dc)

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