x property

dynamic x
final

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

Percentage value refers to the overall width of the chart. i.e. 100% is equal to the width of the chart.

Defaults to null.

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

Implementation

final dynamic x;