format property

String? format
final

Formats the tooltip text.

By default, the tooltip will be rendered with x and y-values.

You can add prefix or suffix to x, y, and series name values in the tooltip by formatting them.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          tooltipBehavior: TooltipBehavior(enable: true, format: '{value}%'),
       ));
}

Implementation

final String? format;