clip property

ChartClipBehavior clip
final

Clip or hide the annotation when it exceeds the chart area or plot area based on region provided.

Defaults to ChartClipBehavior.clip.

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

Implementation

final ChartClipBehavior clip;