axisCrossesAt property

double axisCrossesAt
final

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: SfSparkAreaChart(
     axisCrossesAt: 14,
     data: <double>[18, 24, 30, 14, 28],
      )
    ),
 );
}

Implementation

final double axisCrossesAt;