tooltipArgs = TooltipArgs(
_chart is SfCartesianChart
? currentSeries._segments[0]._seriesIndex
: currentSeries,
════════ Exception caught by rendering library ═════════════════════════════════
The following RangeError was thrown during paint():
RangeError (index): Invalid value: Valid value range is empty: 0
The relevant error-causing widget was
SfCartesianChart-[<'11_chart'>]
lib/…/line_chart_widget/line_chart_widget_view.dart:79
When the exception was thrown, this was the stack
#0 List.[] (dart:core-patch/growable_array.dart:177:60)
#1 _TooltipPainter._renderTooltip
package:syncfusion_flutter_charts/…/user_interaction/tooltip_painter.dart:700
#2 TooltipBehaviorRenderer.onPaint
package:syncfusion_flutter_charts/…/user_interaction/tooltip.dart:883
#3 _TooltipPainter.paint
package:syncfusion_flutter_charts/…/user_interaction/tooltip_painter.dart:673
#4 RenderCustomPaint._paintWithPainter
package:flutter/…/rendering/custom_paint.dart:531
...
The following RenderObject was being processed when the exception was fired: RenderCustomPaint#b5208 relayoutBoundary=up4
RenderObject: RenderCustomPaint#b5208 relayoutBoundary=up4
parentData: <none> (can use size)
constraints: BoxConstraints(0.0<=w<=378.0, 0.0<=h<=300.0)
size: Size(0.0, 0.0)