axisCrossesAt property
Customize the axis position based on the provided y-value. The axis line is rendered on the minimum y-value and can be repositioned to required y-value.
Defaults to 0
.
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfSparkLineChart(
axisCrossesAt: 24,
data: <double>[18, 24, 30, 14, 28],
)
),
);
}
Implementation
final double axisCrossesAt;