RangeError (index): Invalid value: Not in inclusive range 0..88: 89

Hello. I'm trying to use SfCartesianChart but I get the following error:

I took off the maximum value property and removed visibleMaximum so that I could take advantage of enableAutoIntervalOnZooming. Obviously the chart renders empty, but when I tap and pan through the data, the chart populates correctly. I guess its re-painting and then knows how to paint the chart.

Is there anything that I'm probably doing wrong?

════════ Exception caught by rendering library ═════════════════════════════════ RangeError (index): Invalid value: Not in inclusive range 0..113: 114 The relevant error-causing widget was SfCartesianChart lib/…/chart/chart_widget.dart:147 ════════ Exception caught by rendering library ═════════════════════════════════ The following RangeError was thrown during paint(): RangeError (index): Invalid value: Not in inclusive range 0..88: 89 The relevant error-causing widget was SfCartesianChart lib/…/chart/chart_widget.dart:147 When the exception was thrown, this was the stack #0 List.[] (dart:core-patch/growable_array.dart:254:60) #1 calculatePathSeriesRegion package:syncfusion_flutter_charts/…/common/renderer.dart:507 #2 SeriesRendererDetails.calculateRegionData package:syncfusion_flutter_charts/…/chart_series/series_renderer_properties.dart:450 #3 SplineAreaChartPainter.paint package:syncfusion_flutter_charts/…/series_painter/spline_area_painter.dart:226


18 Replies

TO Todd October 25, 2021 04:08 PM UTC

I guess I should mention I've updated to 19.3.46 



RK Rokesh Karthikeyan Syncfusion Team October 26, 2021 03:18 PM UTC

Hi Todd, 
 
Greetings from Syncfusion. We have analyzed your query and we have tried to reproduce the reported scenario, unfortunately we were unable to replicate the reported issue on our side. Also, we have attached the sample we had used for replicating the issue below. 
 
Sample:https://www.syncfusion.com/downloads/support/forum/169913/ze/forum_169913-1218505438 
We suspect you might have zoomed the chart where the data is not available, so after panning the data might be visible. If this is not your case, we kindly request you trying to reproduce the issue in the above sample and provide information on how to replicate your scenario at our end, this will be much helpful in providing the solution sooner. 
 
Regards, 
Rokesh. 



TO Todd October 26, 2021 04:24 PM UTC

Hrm. It seems when I have null values, thats when I have problems. Also I noticed that when I tried to reproduce the problem using the example, I couldn't but EmptyPoints gap is being ignored....Still not sure why my graph refuses to paint when i have null values.


Attachment: forum_169730_63c95d32.zip


TO Todd October 26, 2021 04:43 PM UTC

If I specifically set

emptyPointSettings:
EmptyPointSettings(mode: EmptyPointMode.zero),

then my chart renders, but my gaps are zeros, obviously.

But as soon as I return to the default .gap, which is what I want, I get the error:

RangeError (index): Invalid value: Not in inclusive range 0..88: 89

and if I set visibleMaximum on my Y axis which can have null values, then the chart also renders (with gap mode enabled).



YG Yuvaraj Gajaraj Syncfusion Team October 27, 2021 12:38 PM UTC

Hi Todd, 
 
We are analyzed your reported issue regarding getting range exception when back to the empty point mode gap. But the reported issue is not getting reproduced at our end, so kindly get back to us with more information on the replication procedure along with screen recording so that will be more helpful to provide the solutions sooner. 
 
Regards, 
Yuvaraj. 



TO Todd October 27, 2021 02:08 PM UTC

Are you seeing a chart populate right away? I am not. This is the same behavior I see in my other real app.


https://streamable.com/zvb4gs



TO Todd October 28, 2021 01:43 PM UTC

If possible can you show an example of SplineAreaSeries with null values in the X axis when the axis type is DateTime?



YG Yuvaraj Gajaraj Syncfusion Team October 28, 2021 03:00 PM UTC

Hi Todd, 
 
Greetings from Syncfusion. We have analyzed your scenario, and we are able to replicate the reported issue regarding getting exception when set the emptyPointMode.gap. We will resolve this and include the fix in our upcoming weekly patch release which is expected to be rolled out by 2nd November 2021. We will update you once the release is rolled out and we appreciate your patience until then.  
  
Regards, 
Yuvaraj. 



TO Todd October 28, 2021 03:12 PM UTC

Thank you ! 🥳



YG Yuvaraj Gajaraj Syncfusion Team October 29, 2021 03:47 PM UTC

Hi Todd, 
 
As stated earlier, we will include the fix for the reported scenario next weekly patch release which is expected to be rolled out by 2nd November 2021.  
  
Regards, 
Yuvaraj. 



YG Yuvaraj Gajaraj Syncfusion Team November 2, 2021 01:07 PM UTC

Hi Todd, 
 
We regret for the inconvenience. Due to some technical glitches, we are unable to include in the weekly patch release and the fix will be moved to vol 3 SP 1 release which is expected to be rolled out November 10, 2021. We appreciate your patience until then. 
 
Thanks, 
Yuvaraj. 



TO Todd November 9, 2021 03:21 PM UTC

Still anticipated for tomorrow?



YG Yuvaraj Gajaraj Syncfusion Team November 10, 2021 02:00 PM UTC

Hi Todd, 
 
Since the vol 3 SP 1 release is postponed to 12 Nov 2021. We will let you know once the release is rolled out. 
 
Regards, 
Yuvaraj. 



TO Todd November 10, 2021 02:18 PM UTC

Ok, we are looking forward to it. Please let us know if it will be postponed again?



SK Sriram Kiran Senthilkumar Syncfusion Team November 11, 2021 06:59 AM UTC

Hi Todd, 

The release won’t be postponed again, and as mentioned earlier, we will let you know once the release is rolled out. 

Regards, 
Sriram Kiran. 



YG Yuvaraj Gajaraj Syncfusion Team November 12, 2021 02:32 PM UTC

Hi Todd, 
  
Thanks for your patience. The reported issue regarding getting exception when set the emptyPointMode.gap has been fixed and rolled out in our SP release. To resolve this, kindly upgrade the chart widget package to the latest version below.   
  
  
Regards,  
Yuvaraj.  



TO Todd November 12, 2021 07:20 PM UTC

Thank you. The latest release 



YG Yuvaraj Gajaraj Syncfusion Team November 15, 2021 06:08 AM UTC

Hi Todd, 
 
Most welcome. Please get back to us if you require further assistance. We are always happy in assisting you.  
  
Regards, 
Yuvaraj. 


Loader.
Up arrow icon