coordinateUnit property

CoordinateUnit coordinateUnit
final

Specifies the coordinate units for placing the annotation in either logicalPixel or point.

Defaults to CoordinateUnit.logicalPixel

Also refer CoordinateUnit.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           annotations: <CartesianChartAnnotation>[
               CartesianChartAnnotation(
                   widget: Container(
                   child: const Text('Annotation')),
                   coordinateUnit: CoordinateUnit.point,
                   x: 3,
                   y: 60
                ),
            ],
       )
   );
}

Implementation

final CoordinateUnit coordinateUnit;