sortingOrder property
Type of sorting.
The data points in the series can be sorted in ascending or descending order.The data points will be rendered in the specified order if it is set to none.
Default to SortingOrder.none
.
Also refer SortingOrder.
Widget build(BuildContext context) {
return Container(
child: SfCircularChart(
series: <PieSeries<ChartData, String>>[
PieSeries<ChartData, String>(
sortingOrder: SortingOrder.ascending,
)
),
],
)
);
}
Implementation
@override
final SortingOrder sortingOrder;