CartesianChartAnnotation constructor

const CartesianChartAnnotation({
  1. Widget? widget,
  2. CoordinateUnit coordinateUnit = CoordinateUnit.logicalPixel,
  3. AnnotationRegion region = AnnotationRegion.chart,
  4. ChartAlignment horizontalAlignment = ChartAlignment.center,
  5. ChartAlignment verticalAlignment = ChartAlignment.center,
  6. dynamic x = 0,
  7. dynamic y = 0,
  8. String? xAxisName,
  9. 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});