textFieldMapper property
Maps the field name, which will be considered as a text.
Defaults to null
.
Widget build(BuildContext context) {
return Container(
child: SfFunnelChart(
series: FunnelSeries<ChartData, String>(
xValueMapper: (ChartData data, _) => data.xVal,
yValueMapper: (ChartData data, _) => data.yVal,
textFieldMapper: (ChartData data, _) => data.xVal,
)
)
);
}
class ChartData {
ChartData(this.xVal, this.yVal);
final String xVal;
final int yVal;
}
Implementation
final ChartIndexedValueMapper<String>? textFieldMapper;