onAxisLabelRender property
Occurs while rendering the axis labels. Text and text styles such as color, font size, and font weight can be customized.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
onAxisLabelRender: (AxisLabelRenderArgs args) => axis(args),
));
}
void axis(AxisLabelRenderArgs args) {
args.text = 'axis Label';
}
Implementation
//ignore: deprecated_member_use_from_same_package
final ChartAxisLabelRenderCallback? onAxisLabelRender;