textFieldMapper property

ChartIndexedValueMapper<String>? textFieldMapper
finalinherited

Maps the field name, which will be considered as a text.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfPyramidChart(
           series: PyramidSeries<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;