Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashed crosshair doesn't render properly #290

Closed
dror-weiss opened this issue Jan 29, 2019 · 2 comments
Closed

Dashed crosshair doesn't render properly #290

dror-weiss opened this issue Jan 29, 2019 · 2 comments

Comments

@dror-weiss
Copy link

I'm trying to use "crosshairs" feature on the x-axis in a multiple charts graph.

The rendered dashed "crosshair" doesn't look good, as you can see in the attached image.
It depicts two-part rendering for the "crosshair", one within the column and another outside of it, making the outside part's dash twisted.

screen shot 2019-01-29 at 11 37 00

@junedchhipa
Copy link
Contributor

Yeah, it looks like there has to be a correct combination of dashArray and dashOffset. I will play with different values and maybe provide an additional option dashOffset along with dashArray to control the spacings/size of the dashed line.

@junedchhipa
Copy link
Contributor

Fixed it.
When crosshairs.width = 1, it will draw a line instead of a rect which will prevent 2 borders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants