Based on legend strikethough implementation(code1, code2), legend strikethrough will always have lineWidth as 2 regardless of actual font size. This issue becomes clearly noticeable on small device as shown below.
Possible Implementation
Would suggest to calculate lineWidth based on font size for legend. A rough idea would be updating code from
Feature Proposal
Based on legend strikethough implementation(code1, code2), legend strikethrough will always have![IMG_0064](https://github.com/chartjs/Chart.js/assets/11649092/5a57dacf-3531-42c6-87b7-f7ee1c143457)
lineWidth
as2
regardless of actual font size. This issue becomes clearly noticeable on small device as shown below.Possible Implementation
Would suggest to calculate
lineWidth
based on font size for legend. A rough idea would be updating code fromto
I tested locally this change and this is before and after:![compare](https://github.com/chartjs/Chart.js/assets/11649092/fbd3c9fd-f365-4e6c-a8bd-a9a28b0d0070)
If hard coding ratio here is not acceptable, another option would be providing some option like the one for label to customize strikethrough width.