Chart Throwing Exception: RangeError (index): Invalid value: Not in inclusive range 0..8: 9 (IOS & Android)

We are getting a Range Error Exception when clicking(tapping) the Legend in the Cartesian Chart
data elements all work on chart when set to isVisisble:true
Every time the legend is tapped or clicked the RangeError is thrown. Please help
it looks like something in the chart plugin code :
syncfusion_flutter_charts: 19.1.55+1
======== Exception caught by widgets library =======================================================
The following RangeError was thrown building SfCartesianChart(dirty, dependencies: [_EffectiveTickerMode, _LocalizationsScope-[GlobalKey#45a8d], MediaQuery, _InheritedTheme], state: SfCartesianChartState#f5735(tickers: tracking 12 tickers)):
RangeError (index): Invalid value: Not in inclusive range 0..8: 9
The relevant error-causing widget was:
SfCartesianChart file:/flutter_app_charterror/lib/main.dart:100:24

Attachment: main.dart_5673087.zip

3 Replies 1 reply marked as answer

DP Dharanitharan Palanisamy Syncfusion Team April 12, 2021 07:19 AM UTC

Hi Don, 
 
Sorry for the inconvenience that occurs. We can able to replicate the reported issue at our end and we will resolve this bug and will be included in the upcoming weekly patch release which is expected to be rolled out on 20th April 2021. Please be patience until then. 
 
Thanks, 
Dharanitharan. P 



DP Dharanitharan Palanisamy Syncfusion Team April 13, 2021 02:44 PM UTC

Hi Don, 
 
We logged a feedback for the reported bug, and you can track the status from the below link. As said earlier, we will fix this bug and include it in the upcoming weekly patch release which is expected to be rolled out on 20th April 2021 and we appreciate your patience until then. 
 
 
Thanks 
Dharanitharan. P 



DP Dharanitharan Palanisamy Syncfusion Team April 20, 2021 11:18 AM UTC

Hi Don, 
 
We are very glad to inform you that the reported issue got resolved in our latest version of our charts. Now the legend does not throw exception on legend tap or hot reload. To resolve this, kindly upgrade our charts to the latest version from the below link. 
 
 
Thanks, 
Dharanitharan. P 


Marked as answer
Loader.
Up arrow icon