x property

dynamic x
final

Specifies the x-values as pixel or point values based on the coordinateUnit.

Defaults to null

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           annotations: <CartesianChartAnnotation>[
               CartesianChartAnnotation(
                   child: Container(
                   child: const Text('Empty data')),
                   coordinateUnit: CoordinateUnit.point,
                   region: AnnotationRegion.chartArea,
                   x: 3.5,
                   y: 60
              ),
            ],
       ));
}

Implementation

final dynamic x;