-
Notifications
You must be signed in to change notification settings - Fork 774
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
onTrackballPositionChanging #65
Comments
Hi @anisalibegic , Greetings from Syncfusion. Yes, we can find the point index when you click on a point with trackball enabled. This can be achieved using the onTrackballPositionChanging event. In this event, we can get the point index on which we have tapped. We have printed the index value, and this can be changed based on your scenario. Find the code snippet below.
Sample for reference can be found from the below link. Hope this helps. Thanks, |
I think I found an issue with onTrackballPositionChanging. Open your sample and hide the
After that whenever you click on a point I get the following output:
If you change the visibility of
Complete code:
|
Hi @anisalibegic , We have analyzed your query and we can replicate the reported scenario when the axis visibility is disabled. We will fix the reported scenario and include in our vol 4 sp1 release which is expected to be out at the end of January 2020. As a workaround, if you wish to hide the axis elements like axis line, ticks, and labels, specify the color to transparent and the space for the axis labels and ticks remains the same. You can find the code snippet for the workaround from below to hide the axis elements.
Hope this helps. Thanks, |
Hi @anisalibegic , Thanks for being patience. The trackball issue has been fixed, now trackball event will be triggered for the tapped point when the axis visibility is hidden. To resolve the reported issue kindly upgrade the chart widget package to v17.4.43 from below. https://pub.dev/packages/syncfusion_flutter_charts/versions/17.4.43 Thanks, |
Every time I click on a point using trackball the
onTrackballPositionChanging
callback is fired for every other point. After that I have no idea on which point I clicked...Is there a way to find out the index of the point I clicked on using trackball?
The text was updated successfully, but these errors were encountered: