Trackball not working (newest update 18.1.43)

I am trying to show 3 series in a chart (2 fast lines and 1 area). But when using the trackball not all 3 show up. When singled out (thus commenting the other 2 out) they all work (videos are attached), but when all 3 are shown at once, the trackball glitches.

I am using the newest patch (18.1.43) and it still doesn't work.

I also sometimes get errors when trying to activate/move the trackball that look like this:

flutter: Another exception was thrown: RangeError (index): Invalid value: Not in range 0..1440, inclusive: 6780
flutter: Another exception was thrown: RangeError (index): Invalid value: Not in range 0..1440, inclusive: 6746
flutter: Another exception was thrown: RangeError (index): Invalid value: Not in range 0..1440, inclusive: 6718
flutter: Another exception was thrown: RangeError (index): Invalid value: Not in range 0..1440, inclusive: 6694
flutter: Another exception was thrown: RangeError (index): Invalid value: Not in range 0..1440, inclusive: 6645
flutter: Another exception was thrown: RangeError (index): Invalid value: Not in range 0..1440, inclusive: 6597
flutter: Another exception was thrown: RangeError (index): Invalid value: Not in range 0..1440, inclusive: 6569
flutter: Another exception was thrown: RangeError (index): Invalid value: Not in range 0..1440, inclusive: 6534
flutter: Another exception was thrown: RangeError (index): Invalid value: Not in range 0..1440, inclusive: 6499

Thanks in advance!


Attachment: videos_2a788aab.zip

6 Replies

DD Dharanidharan Dharmasivam Syncfusion Team April 8, 2020 09:45 AM UTC

Hi Luca, 
 
Greetings from Syncfusion. We had the reported issue with the previous version, and this issue has been resolved with v18.1.43. We have also ensured this at our end and the reported scenario is not replicated. The sample used for testing can be found below. 
 
Kindly make sure that the new version of the chart widget source is referred, because of the cache issues, sometimes the old version might be referring. And the reported exception is also not thrown. If you still face any issues kindly try to replicate the reported scenario with the above sample or provide your sample with data source you have used for the chart. This will be helpful in further analysis and provide you the solution sooner. 
 
Thanks, 
Dharani. 



LU Luca April 8, 2020 12:53 PM UTC

I have edited your sample and replicated the issue (as can be seen in the video)

Here is the change I made (only change is to the getDefaultData method):

static List<ChartSeries<OrdinalSales1, double>> getDefaultData() {
final dynamic chartData = List.generate(3600, (i) => OrdinalSales1(i.toDouble(), 3, 2, 1));

return <ChartSeries<OrdinalSales1, double>>[
FastLineSeries<OrdinalSales1, double>(
dataSource: chartData,
enableTooltip: true,
name:'bloodConcentration',
xValueMapper: (OrdinalSales1 sales, _) => sales.year / 60,
yValueMapper: (OrdinalSales1 sales, _) => sales.y,
animationDuration: 0),
FastLineSeries<OrdinalSales1, double>(
dataSource: chartData,
name:'effectConcentration',
enableTooltip: true,
xValueMapper: (OrdinalSales1 sales, _) => sales.year / 60,
yValueMapper: (OrdinalSales1 sales, _) => sales.y2,
animationDuration: 0),
AreaSeries<OrdinalSales1, double>(
dataSource: chartData,
name:'rateConcentration',
enableTooltip: true,
emptyPointSettings: EmptyPointSettings(
mode: EmptyPointMode.zero
),
xValueMapper: (OrdinalSales1 sales, _) => sales.year / 60,
yValueMapper: (OrdinalSales1 sales, _) => sales.y3,
animationDuration: 0),
];
}
}

Kind regards,

Luca

Attachment: Schermopname_20200408_om_14.49.20_327bbb2d.zip


DD Dharanidharan Dharmasivam Syncfusion Team April 9, 2020 09:58 AM UTC

Hi Luca, 

Thanks for the information. The reported scenario is replicated when there is more data source if there are few data sources the reported scenario is not replicated. The fix will be included in our upcoming weekly patch release on April 14, 2020. We will update you once the release is rolled out and we appreciate your patience until then. 

Thanks, 
Dharani. 



DD Dharanidharan Dharmasivam Syncfusion Team April 15, 2020 03:03 PM UTC

Hi Luca, 

On further analysis, our development team found that for better performance with the fast line series some of the points will be removed, due to this index of the data points will be varied. In this case, for user interaction with combination series (fast line with the area), index mismatch occurs. So, the trackball has shown text for two series alone, since the trackball will be shown based on the index. For such cases, we recommend you use line series instead of fast line series. While using the line with area series, the trackball will be shown properly. 

Thanks, 
Dharani. 



FT Frank Thomson April 28, 2020 06:01 PM UTC

I had the same issue but could solve it by making sure that the first series had all the x-ticks (month in my case)...


DD Dharanidharan Dharmasivam Syncfusion Team April 29, 2020 06:26 AM UTC

Hi Frank, 
 
Thanks for the update. Kindly get back to us if you have any other queries. We are always happy in assisting you. 
 
Thanks, 
Dharani. 


Loader.
Up arrow icon