onRenderDetailsUpdate property
Callback which gets called on error bar render.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <ErrorBarSeries<SalesData, String>>[
ErrorBarSeries<SalesData, String>(
onRenderDetailsUpdate: (ErrorBarRenderDetails errorBarRenderDetails){
print(args.pointIndex);
print(args.viewPortPointIndex);
print(args.calculatedErrorBarValues!.horizontalPositiveErrorValue);
print(args.calculatedErrorBarValues!.horizontalNegativeErrorValue);
print(args.calculatedErrorBarValues!.verticalPositiveErrorValue);
print(args.calculatedErrorBarValues!.verticalNegativeErrorValue);
}
),
],
);
}
Implementation
final ChartErrorBarRenderCallback? onRenderDetailsUpdate;