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 border on highlighted bar - BarChart #2675

Closed
gustavo-yy opened this issue Aug 3, 2017 · 1 comment
Closed

Dashed border on highlighted bar - BarChart #2675

gustavo-yy opened this issue Aug 3, 2017 · 1 comment

Comments

@gustavo-yy
Copy link

Hi, I'm trying to add a dashed border when I click on a barchart, at the moment I was abble to add a border but not the way a want.

I've tried this inside BarChartRenderer->drawHighlighted:
context.setStrokeColor(UIColor.white.cgColor)
context.stroke(barRect)
context.setLineDash(phase: 0.0, lengths: [5.0])

This is what i got:
captura de pantalla 2017-08-03 a la s 13 53 53

But I want it lo look like this:
captura de pantalla 2017-08-03 a la s 13 54 26

@liuxuan30
Copy link
Member

liuxuan30 commented Aug 9, 2017

context.stroke(barRect)
context.setLineDash(phase: 0.0, lengths: [5.0])

whey you stroke then set line dash? it should be the reversed order

@liuxuan30 liuxuan30 reopened this Aug 9, 2017
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