|
SfCartesianChart(
// Annotations
annotations: <CartesianChartAnnotation>[
CartesianChartAnnotation(
widget:Padding(
padding: EdgeInsets.only(bottom: 20),
// Providing the 7th data value in the data source
child:Container(
child: Text(chartData[7].high.toString())
)
),
coordinateUnit: CoordinateUnit.point,
region: AnnotationRegion.plotArea,
x: chartData[7].x,
y: chartData[7].high
),
CartesianChartAnnotation(
widget: Padding(
padding: EdgeInsets.only(top: 20),
// Providing the 2nd data value in the data source
child:Container(
child: Text(chartData[2].low.toString())
)
),
coordinateUnit: CoordinateUnit.point,
region: AnnotationRegion.plotArea,
x: chartData[2].x,
y: chartData[2].low
)
],
) |
|
Normal state |
Zoomed state |
|
|
|