onRendererCreated property

FunnelSeriesRendererCreatedCallback? onRendererCreated
finalinherited

Triggers when the series renderer is created.

Using this callback, able to get the ChartSeriesController instance, which is used to access the public methods in the series.

Defaults to null.

Widget build(BuildContext context) {
   ChartSeriesController _chartSeriesController;
   return Container(
       child: SfFunnelChart(
           series: FunnelSeries<SalesData, num>(
                   onRendererCreated: (ChartSeriesController controller) {
                      _chartSeriesController = controller;
                   },
             ],
       )
   );
}

Implementation

final FunnelSeriesRendererCreatedCallback? onRendererCreated;