onMarkerRender property
Occurs when the marker is rendered. Here, you can get the marker pointIndex shape, height and width of data markers.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
onMarkerRender: (MarkerRenderArgs markerargs)
{
if(markerargs.pointIndex==2)
{
markerargs.markerHeight=20.0;
markerargs.markerWidth=20.0;
markerargs.shape=DataMarkerType.triangle;
}
},
));
}
Implementation
final ChartMarkerRenderCallback? onMarkerRender;