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

How to draw a rectangle,or how to get the last point's CGPoint? #827

Closed
yumazaki opened this issue Mar 10, 2016 · 1 comment
Closed

How to draw a rectangle,or how to get the last point's CGPoint? #827

yumazaki opened this issue Mar 10, 2016 · 1 comment

Comments

@yumazaki
Copy link

I want to draw this rectangle.
20160310230629
I've searched several hours, how to get it or how to draw?

@liuxuan30
Copy link
Member

drawing the rect has many options; but I guess you can use ChartMarker and change the coordinates, or you write a new method to draw this;
for the last point - if you can know the lat value's xIndex and it's value, you can convert it into pixels; ChartTransformer's method is doing the job. Take a look at how line dot is drawn; it's in line chart renderer.

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