TrackballBehavior showByIndex call doesnt redraw trackball location

Summary:
Created a button to change the position of the trackball in the chart by calling showByIndex.

Expected behaviour:
Upon calling showByIndex, the position of the trackball changes to new position based on provided index.

Actual behaviour:
No change in trackball position in the chart, but onTrackballPositionChanging callback function is triggered with the newly requested position in the argument.
It used to work in syncfusion_flutter_charts v18.2.59 but somehow it is no longer working in syncfusion_flutter_charts v18.3.44

My trackballbehaviour:
_trackballBehavior = TrackballBehavior(
enable: true,
shouldAlwaysShow: true,
tooltipDisplayMode: TrackballDisplayMode.floatAllPoints,
tooltipSettings: InteractiveTooltip(
format: 'point.y',
),
activationMode: ActivationMode.singleTap,
tooltipAlignment: ChartAlignment.far,
);

this _trackBehaviour is set in SfCartesianChart with only 1 ScatterSeries.

the button merely calls the following
_trackballBehavior.showByIndex(index);

Again, it is all working before in 18.2.59 before.

Many thanks for the good work! Please kindly let me know if there is anything I have missed out in this new 18.3.44.

Henry


4 Replies 1 reply marked as answer

SK Sriram Kiran Senthilkumar Syncfusion Team October 29, 2020 12:54 PM UTC

Hi Henry, 
  
Greetings from Syncfusion. We have analyzed your scenario with the provided information and we are able to replicate the reported issue at our end regarding the TrackballBehavior’s showByIndex public method not working properly when called in the chart to activate the trackball dynamically at a specified point index. We will consider this as a bug, and we will include the fix for the reported issue in our upcoming weekly patch release which is expected to be rolled out by 10th November 2020. We will update you once the release is rolled out and we appreciate your patience until then. 
  
Regards, 
Sriram Kiran 



AR Arun Raji Syncfusion Team November 11, 2020 10:21 AM UTC

Hi Henry,  
  
We are glad to announce that our Flutter weekly patch release (v18.3.48) has been successfully rolled out and we have included the fix for the issue TrackballBehavior`s showByIndex public method not working properly. So, update your charts package to this v18.3.48. You can download the updated charts package in the below link. 
  
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.  
  
Thanks, 
Arun 


Marked as answer

HE Henry November 27, 2020 03:13 AM UTC

Hi Arun,

Appreciate the fix and I can tell you that it is working as expected in
syncfusion_flutter_charts: ^18.3.51
Thanks for the help!

Henry


SK Sriram Kiran Senthilkumar Syncfusion Team November 27, 2020 06:22 AM UTC

Hi Henry, 
  
Most Welcome. We are always happy in assisting you. Please get in touch with us if would you require further assistance. 
  
Regards, 
Sriram Kiran 


Loader.
Up arrow icon