Hello, could you please help me format the label settings of the pie chart to display currency format with no decimals:
class _PieChartState extends State<PieChart> {
@override
Widget build(BuildContext context) {
return Container(
child: SfCircularChart(
legend: Legend(
isVisible: true,
position: LegendPosition.bottom,
),
series: <CircularSeries<PieChartDataStruct, String>>[
// Render pie chart
PieSeries<PieChartDataStruct, String>(
dataSource: widget.piechartData,
dataLabelSettings: DataLabelSettings(
isVisible: true,
),
animationDuration: 0,
//pointColorMapper: (PieChartDataStruct data, _) => data.color,
xValueMapper: (PieChartDataStruct data, _) => data.xTitle,
yValueMapper: (PieChartDataStruct data, _) => data.yValue)
]));