shape property
Customizes the marker shape. The SparkChartMarkerShape has pre-defined sets of marker shape.
- SparkChartMarkerShape.circle displays the circular shape.
- SparkChartMarkerShape.diamond displays the diamond shape as a marker.
- SparkChartMarkerShape.square displays the square shape as a marker.
- SparkChartMarkerShape.triangle displays the triangular shape as a marker.
- SparkChartMarkerShape.invertedTriangle displays the inverted triangular shape as a marker.
Also refer SparkChartMarkerShape.
Defaults to SparkChartMarkerShape.circle
.
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfSparkAreaChart(
marker: SparkChartMarker(
shape: SparkChartMarkerShape.square)
)
),
);
}
Implementation
final SparkChartMarkerShape shape;