seriesRenderer property
Used to access the series properties.
Defaults to null
Widget build(BuildContext context) {
ChartSeriesController _chartSeriesController;
return Container(
child: SfCartesianChart(
series: <LineSeries<SalesData, num>>[
LineSeries<SalesData, num>(
onRendererCreated: (ChartSeriesController controller) {
_chartSeriesController = controller;
// prints series yAxisName
print(_chartSeriesController.seriesRenderer._series.yAxisName);
},
),
],
));
}
Implementation
final XyDataSeriesRenderer seriesRenderer;