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

Implementation

final double axisCrossesAt;