text property

String text
final

Text to be displayed as chart title. Any desired text can be set as chart title. If the width of the chart title exceeds the width of the chart, then the title will be wrapped to multiple rows.

Defaults to ''.

Widget build(BuildContext context) {
  return SfCartesianChart(
    title: ChartTitle(
      text: 'Chart Title'
    )
  );
}

Implementation

final String text;