textStyle property
Specifies the text style of the multi-level labels.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
primaryXAxis: NumericAxis(
multiLevelLabelStyle: MultiLevelLabelStyle(
textStyle: TextStyle(
fontSize: 10,
color: Colors.black,
)
),
multiLevelLabels: const <NumericMultiLevelLabel>[
NumericMultiLevelLabel(
start: 0,
end: 4,
text: 'First',
)
]
)
)
);
}
Implementation
final TextStyle? textStyle;