onRenderDetailsUpdate property

ChartErrorBarRenderCallback? onRenderDetailsUpdate
final

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(errorBarRenderDetails.pointIndex);
          print(errorBarRenderDetails.viewPortPointIndex);
          print(errorBarRenderDetails.calculatedErrorBarValues!.
            horizontalPositiveErrorValue);
          print(errorBarRenderDetails.calculatedErrorBarValues!.
            horizontalNegativeErrorValue);
          print(errorBarRenderDetails.calculatedErrorBarValues!.
            verticalPositiveErrorValue);
          print(errorBarRenderDetails.calculatedErrorBarValues!.
            verticalNegativeErrorValue);
        }
      ),
    ],
  );
}

Implementation

final ChartErrorBarRenderCallback? onRenderDetailsUpdate;