marker property
Enables and customizes the markers.
Markers are used to provide information about the exact point location.
You can add a shape to adorn each data point. Markers can be enabled by
using the displayMode
property of SparkChartMarker.
Provides the options of color, borderWidth
, borderColor
and shape
of the marker to customize the appearance.
Defaults to null
.
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfSparkLineChart(
marker: SparkChartMarker(displayMode: SparkChartMarkerDisplayMode.all),
data: <double>[18, 24, 30, 14, 28],
)),
);
}
Implementation
final SparkChartMarker? marker;