image property

ImageProvider<Object>? image
final

Image to be used as marker.

Defaults to null.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <SplineSeries<SalesData, num>>[
      SplineSeries<SalesData, num>(
        markerSettings: MarkerSettings(
          isVisible: true,
          shape: DataMarkerType.rectangle,
          image: const AssetImage('images/bike.png')
        ),
      ),
    ],
  );
}

Implementation

final ImageProvider? image;