CartesianChartAnnotation constructor
const
CartesianChartAnnotation({
- required Widget widget,
- required dynamic x,
- required dynamic y,
- CoordinateUnit coordinateUnit = CoordinateUnit.logicalPixel,
- String? xAxisName,
- String? yAxisName,
- AnnotationRegion region = AnnotationRegion.chart,
- ChartClipBehavior clip = ChartClipBehavior.clip,
- ChartAlignment horizontalAlignment = ChartAlignment.center,
- ChartAlignment verticalAlignment = ChartAlignment.center,
Creating an argument constructor of CartesianChartAnnotation class.
Implementation
const CartesianChartAnnotation({
required this.widget,
required this.x,
required this.y,
this.coordinateUnit = CoordinateUnit.logicalPixel,
this.xAxisName,
this.yAxisName,
this.region = AnnotationRegion.chart,
this.clip = ChartClipBehavior.clip,
this.horizontalAlignment = ChartAlignment.center,
this.verticalAlignment = ChartAlignment.center,
});