args.chartPointInfo.series no longer available in 'onCrosshairPositionChanging'

Hi, 

In my app, I used the args.chartPointInfo.series.name variable in the onCrosshairPositionChanging method to distinguish between different series, but this is now no longer working.
I get the following message.
Compiler message:
lib/screens/simulation/simulation_chart.dart:229:49: Error: The getter 'series' isn't defined for the class '_ChartPointInfo'.
 - '_ChartPointInfo' is from 'package:syncfusion_flutter_charts/charts.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_charts-18.2.46/lib/charts.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'series'.
        String seriesName = args.chartPointInfo.series.name;

P.S. I had taken a break from development so this might be a change that happened a little while ago.

Thanks in advance.

4 Replies 1 reply marked as answer

SK Sriram Kiran Senthilkumar Syncfusion Team July 23, 2020 12:17 PM UTC

Hi Luca, 
  
We have analyzed your scenario at our end and we are not sure of what you have proposed in your query regarding the onCrosshairPositionChanging event because, from the first release of our chart widget, the onCrosshairPositionChanging event available in the chart didn’t have chartPointInfo as its argument and so, it is not possible to get the chartPointInfo values from the CrosshairRenderArgs. Only using the onTrackballPositionChanging event available in the chart, you can be able to get the chartPointInfo when user interaction is done. 
As we are not sure of the exact scenario proposed in your query, we kindly request you to revert us with the version details of our chart widget which you are using in your project and also kindly provide us with more detail information on your requirement or what you are trying to achieve so that it will be helpful in providing the solutions sooner. 
 
For further reference on onCrosshairPositionChanging and onTrackballPositionChanging events, please check the user guides below, 
  
Regards, 
Sriram Kiran 



LU Luca July 26, 2020 06:03 PM UTC

I indeed meant onTrackballPositionChanging instead of onCrosshairPositionChanging. But my query still stands, in the args of onTrackballPositionChanging, how do I currently get the series (or series name) from these args?

Thank you in advance,

Luca


SK Sriram Kiran Senthilkumar Syncfusion Team July 27, 2020 12:00 PM UTC

Hi Luca,  
  
We have analyzed your scenario and we are able to replicate the reported issue regarding the series variable no longer available from the chartPointInfo argument available in the TrackballArgs. We are sorry for the inconvenience. 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 the middle of this week. We will update you once the release is rolled out and we appreciate your patience until then. 
  
Regards, 
Sriram Kiran. 



SK Sriram Kiran Senthilkumar Syncfusion Team July 29, 2020 11:56 AM UTC

Hi Luca, 
 
Thanks for your patience. The reported issue regarding the series variable no longer available from the chartPointInfo argument available in the TrackballArgs of onTrackballPositionChanging event is now fixed and rolled out in our weekly patch release. To overcome the reported issue, kindly upgrade the chart widget package to the latest version below. 
 
Regards, 
Sriram Kiran 


Marked as answer
Loader.
Up arrow icon