builder property

ChartWidgetBuilder? builder
final

Builder for data label.

Defaults to null

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <SplineSeries<SalesData, num>>[
               SplineSeries<SalesData, num>(
                 dataLabelSettings: DataLabelSettings(
                      isVisible: true,color: Colors.yellow
                      builder: (dynamic data, dynamic point, dynamic series,
                          int pointIndex, int seriesIndex) {
                        return Container(height: 30, width: 30,
                         child: Image.asset('images/horse.jpg'));
         }),
               ),
             ],
       ));
}

Implementation

final ChartWidgetBuilder<dynamic>? builder;