chartjs / chartjs/chartjs-plugin-annotation
Line annotation when specified with borderWidth:1, the final width of line is 2px
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 623
- Forks
- 377
- PR merge metrics
- No merged PRs in 30d
Description
When using line annotation with `borderWidth: 1`, the final width of the line is `2px`.
Step to reproduce:
- Open [https://www.chartjs.org/chartjs-plugin-annotation/latest/samples/line/visibility.html](https://www.chartjs.org/chartjs-plugin-annotation/latest/samples/line/visibility.html)
- Screen the website using [PixelZoomer](https://addons.mozilla.org/en-US/firefox/addon/pixelzoomer/)
- Measure the width of the line "Now"
The width is `2px` even when `borderWidth` is set to `1px`.
I would be happy to create a pull request if someone points me to the right direction.
Contributor guide
Assessment
This issue has not been assessed yet.