format property Null safety

String? format

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 %'

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


final String? format;