-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Getting x,y values of points in LineChart #739
Comments
I guess you have to first get the last point x, y and use delegate or you add a new method to draw the custom shape you want in |
@liuxuan30 Thanks for reply. My question is how to get these values. I have the LineChart object, what is the method to get the last point x,y? I'd appreciate an example very much. |
I don't think currently there is method to return the pixel x,y to you. You have to change the code to get it, by delegate, that's the easiest one. Or you can walk through the code to calculate it directly. |
Actually you can use the transformer for this. You give it a point on the chart which represents an xIndex and a yValue, and in return you get a pixel based x/y |
Yep but the left/right transformer is internal - so in some cases we cannot use it directly. I used to write a delegate to get the x, y. |
Hi,
First of all, thank you for your great great project.
I'm using a LineChart and looking for an easy way to get the x/y of the last point,
in order to draw a customizable static bubble above/underneath it (not on Highlighting).
What is the easiest way to get these values?
Thanks :)
The text was updated successfully, but these errors were encountered: