y property

dynamic y
final

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

Percentage value refers to the overall height of the chart. i.e. 100% is equal to the height 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 y;