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