shape property

SparkChartMarkerShape shape
final

Customizes the marker shape. The SparkChartMarkerShape has pre-defined sets of marker shape.

Also refer SparkChartMarkerShape.

Defaults to SparkChartMarkerShape.circle.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     marker: SparkChartMarker(
         shape: SparkChartMarkerShape.square,
         displayMode: SparkChartMarkerDisplayMode.all),
     data: <double>[18, 24, 30, 14, 28],
   )),
 );
}

Implementation

final SparkChartMarkerShape shape;