Skip to content

Commit 9f71425

Browse files
flut-5602-[feature][flutter]: resolved conflicts
1 parent 171028b commit 9f71425

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Flutter/cartesian-charts/annotations.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ To position the annotation based on the percentage values, set the [`CoordinateU
173173

174174
**Positioning based on region**
175175

176-
Annotations can be placed with respect to either [`AnnotationRegion.plotArea`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/AnnotationRegion.html) or [`AnnotationRegion.chart`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/AnnotationRegion.html) using [`region`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/region.html) property.
176+
Annotations can be placed with respect to either [`AnnotationRegion.plotArea`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/AnnotationRegion.html) or [`AnnotationRegion.chart`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/AnnotationRegion.html) using [`region`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/region.html) property.
177177

178178
{% highlight dart %}
179179

@@ -212,7 +212,7 @@ The following code example demonstrates how to set the [`horizontalAlignment`](h
212212

213213
{% highlight dart %}
214214

215-
@override
215+
@override
216216
Widget build(BuildContext context) {
217217
return Scaffold(
218218
body: SafeArea(
@@ -308,6 +308,7 @@ When there are multiple axes in the chart, annotation can be added for a particu
308308

309309
@override
310310
Widget build(BuildContext context) {
311+
311312
final List<ChartData> chartData = [
312313
ChartData(10, 17, 132),
313314
ChartData(20, 34, 134),
@@ -380,6 +381,15 @@ Chart supports watermark which allows you to mark the specific area of interest
380381

381382
@override
382383
Widget build(BuildContext context) {
384+
385+
final List<ChartData> chartData = [
386+
ChartData(10, 17, 132),
387+
ChartData(20, 34, 134),
388+
ChartData(30, 24, 124),
389+
ChartData(40, 30, 130),
390+
ChartData(50, 10, 110)
391+
];
392+
383393
return Scaffold(
384394
body: SafeArea(
385395
child: Center(
@@ -437,4 +447,4 @@ Chart supports watermark which allows you to mark the specific area of interest
437447

438448
![Chart with Watermark](images/annotation/watermark.png)
439449

440-
N> `chartData` in the above code snippets is a class type list and holds the data for binding to the chart series. Refer [Bind data source](https://help.syncfusion.com/flutter/cartesian-charts/getting-started#bind-data-source) topic for more details.
450+
N> `chartData` in the above code snippets is a class type list and holds the data for binding to the chart series. Refer [Bind data source](https://help.syncfusion.com/flutter/cartesian-charts/getting-started#bind-data-source) topic for more details.

0 commit comments

Comments
 (0)