-
Notifications
You must be signed in to change notification settings - Fork 848
Trackball and crosshair is not visible in Sfcartision from latest version 27.x.52 #2125
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
Comments
I am seeing similar after just updating, I have a customised trackball, when I assign a custom builder the line no longer appears in 27.x.x but it did for 24.x.x |
I had a quick look at the code in the debugger and it looks when I assign a custom builder the chartPointInfo collection is cleared before the line is drawn, it is not cleared when there isn't a custom builder assigned. I'm not sure where/when this is collection is cleared
|
Without custom builder is it working? I am trying but no luck. I am expecting someone from syncfustion team to take a look at it. |
Yes, it works when there isn't a custom builder for me, but I need the builder. |
Commenting to bump this issue a bit. I am also encountering the same issue and hoping for a fix ASAP. |
Hi @upendra-bajpai, We have checked the mentioned issue 'trackball and crosshair is not visible in Charts' and tried to replicate it in SfCartesianChart with version 27.1.52 by,
However, we were unable to reproduce it on our end. Please check the attached sample, and if you are still experiencing the issue, we request that you replicate it in the attached sample and provide us with more details regarding the specific scenario in which you are encountering this issue. This will help us to assist you more effectively. Sample : GH_2125.zip Regards, |
I can get the example to work, in my code I have a setState in the builder - this seems to be causing the issue, when I comment it out the trackball is working but the setState notification is obviously no longer working |
I've updated my code to use a ValueNotifier which it probably should have been using anyway instead of setState and it's working for me now. Note though setState was working before I upgraded. |
Hi Baconbyte, We have reviewed your query and would like to inform you that TrackballBehavior.builder is implemented for customizing tooltip content based on the use case. Calling setState inside the builder can lead to issues, as it only executes when the trackball is displayed. Since trackballs are dynamically created and destroyed, this can disrupt the widget lifecycle, resulting in tooltips that may not render or update as expected. Therefore, we have restricted the usage of setState from the latest version and this is the default behavior of the trackball in SfCartesianChart. Regards, |
Thank you, I removed figured something like this and setstate , it's working fine now. |
_trackballBehavior = TrackballBehavior(
I'm on v 28.2.5 and the trackball line is not showing. The crosshairs work perfectly though |
Uh oh!
There was an error while loading. Please reload this page.
Bug description
I had implemented trackball with version 24.x.x but recently I updated to latest version.
Now I can't see trackball or crosshair although I can see label on x axis hilighted while traversing.
Restoring to previous version I can see them again.
Is there anything which I need to update or it's a bug?
Ps.Thank you for this library
Steps to reproduce
Just update to 27.x.x for charts and impliment trackball in Sfcartision charts. Both Android and iOS can't show the trackball.
Screenshots or Video
Screenshots / Video demonstration
I can update if needed
Stack Traces
Stack Traces
No crashes available
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: