Hi Mayur,
Thanks for using Syncfusion Flutter chart widget. Your requirement can be achieved using the annotation feature. Using the annotation feature you can add the widgets on the chart. In the below code, we have added a text, and this can be modified based on your scenario.
SfCartesianChart(
annotations: <CartesianChartAnnotation>[
CartesianChartAnnotation(
widget: Container(
child: const Text('Annotation',
style: TextStyle(fontSize: 18))),
coordinateUnit: CoordinateUnit.point,
region: AnnotationRegion.plotArea,
// Here if your x-axis is rendered as category axis and coordinateUnit is point, then in the
x attribute you can either specify the index value of the point else directly specify the
x value as below.
x: 'Fri',
y: 28),
],
),
|
For your convenience, we have prepared a sample and more information on the annotation feature find the user guide.
Thanks,
Dharani.