chartjs / chartjs/chartjs-plugin-annotation

Line annotation when specified with borderWidth:1, the final width of line is 2px

Open
#903 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.