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
I guess I should mention I've updated to 19.3.46
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.
If I specifically set
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).
Are you seeing a chart populate right away? I am not. This is the same behavior I see in my other real app.
If possible can you show an example of SplineAreaSeries with null values in the X axis when the axis type is DateTime?
Thank you ! 🥳
Still anticipated for tomorrow?
Ok, we are looking forward to it. Please let us know if it will be postponed again?
Thank you. The latest release