[VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: LateInitializationError: Field '_alwaysShow@150283885' has not been initialized.

Hi, 

I'm working with StackedColumnSeries trackball.

I have a chart that uses trackball to show the tooltip.

I am using zoomPanBehavior enablePanning and setting visibleMaximum to show part of the data and scroll to see additional data. Everything works fine, but I am getting this message below in the console:


[VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: LateInitializationError: Field '_alwaysShow@150283885' has not been initialized.

#0      _TrackballTemplateState._alwaysShow (package:syncfusion_flutter_charts/src/chart/user_interaction/trackball_template.dart)

#1      _TrackballTemplateState.hideTrackballTemplate (package:syncfusion_flutter_charts/src/chart/user_interaction/trackball_template.dart:134:21)

#2      TrackballBehavior.hide.<anonymous closure> (package:syncfusion_flutter_charts/src/chart/user_interaction/trackball.dart:476:32)

#3      _rootRun (dart:async/zone.dart:1346:47)

#4      _CustomZone.run (dart:async/zone.dart:1258:19)

#5      _CustomZone.runGuarded (dart:async/zone.dart:1162:7)

#6      _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)

#7      _rootRun (dart:async/zone.dart:1354:13)

#8      _CustomZone.run (dart:async/zone.dart:1258:19)

#9      _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1186:23)

#10     Timer._createT<…>


There doesn't seem to be appearing error on the functional side, but this message keeps appearing whenever I scroll through the chart, and I cannot see the console message I put for debugging purpose.

Here is my SfCartesianChart part of the code:


SfCartesianChart(
zoomPanBehavior: ZoomPanBehavior(enablePanning: true,),
plotAreaBorderWidth: 0,
primaryXAxis: CategoryAxis(
visibleMaximum: 8,
maximumLabels: 6,
),
primaryYAxis: NumericAxis(
),
trackballBehavior: TrackballBehavior(
activationMode: ActivationMode.singleTap,
tooltipDisplayMode: TrackballDisplayMode.groupAllPoints,
tooltipAlignment: ChartAlignment.center,
enable: true,
builder: (BuildContext context, TrackballDetails trackballDetails) {
...return customTrackball;
},
),
legend: Legend( ...),
onTooltipRender: (TooltipArgs args){
... some text conversion
},
series: <CartesianSeries>[
...3 stacked column series,
]
),


Thanks,


1 Reply

DP Dharanitharan Palanisamy Syncfusion Team July 19, 2021 12:08 PM UTC

Hi Jaehwi, 
 
Greetings from the Syncfusion team. We have investigated your question and can assure you that there are no concerns with the trackball template function, as you said, and that you can use it without worry. We will take care of the warning on our end, and we have also attached the trackball template's output for your reference. 
 
Output: 
 
 
 
Thanks, 
Dharanitharan. P 
 


Loader.
Up arrow icon