format property

String? format
final

Text format of the interactive tooltip.

By default, axis value will be displayed in the tooltip, and it can be customized by adding desired text as prefix or suffix.

late TrackballBehavior trackballBehavior;

void initState() {
  trackballBehavior: TrackballBehavior(
    enable: true,
    tooltipSettings: InteractiveTooltip(
      format: 'point.y %'
    )
  );
  super.initState();
}

Widget build(BuildContext context) {
  return SfCartesianChart(
    trackballBehavior: trackballBehavior
  );
}

Implementation

final String? format;