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: <TechnicalIndicators<Sample, num>>[
     StochasticIndicator<Sample, num>(
       seriesName: 'Series1',
       xAxisName: 'xAxis',
       showZones : false
     ),
   ],
   series: <ChartSeries<Sample, num>>[
     HiloOpenCloseSeries<Sample, num>(
       name: 'Series1'
     )
   ]
 );
}

Implementation

final String? xAxisName;