format property

String? format

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.

late TooltipBehavior tooltipBehavior;

void initState() {
  tooltipBehavior = TooltipBehavior(
    enable: true,
    format:'point.y %'

Widget build(BuildContext context) {
  return SfCartesianChart(
    tooltipBehavior: tooltipBehavior


final String? format;