xAxisName property

String? xAxisName
final

Property to map the technical indicators with the axes.

Defaults to null.

Widget build(BuildContext context) {
 return SfCartesianChart(
   primaryXAxis: NumericAxis(name: 'xAxis')
   indicators: <TechnicalIndicator<Sample, num>>[
     StochasticIndicator<Sample, num>(
       seriesName: 'Series1',
       xAxisName: 'xAxis',
       showZones : false
     ),
   ],
   series: <CartesianSeries<Sample, num>>[
     HiloOpenCloseSeries<Sample, num>(
       name: 'Series1'
     )
   ]
 );
}

Implementation

final String? xAxisName;