Skip to content

Commit 51d80f4

Browse files
Merge remote-tracking branch 'origin/hotfix/hotfix-v19.3.0.43' into SEO-1686-Flutter-Money-Keywords-Hotfix
2 parents 149b0ba + 9ebb276 commit 51d80f4

File tree

129 files changed

+578
-436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+578
-436
lines changed

Flutter/Release-notes/v19.3.0.45.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Essential Studio for Flutter Weekly Nuget Release Release Notes
3+
description: Essential Studio for Flutter Weekly Nuget Release Release Notes
4+
platform: flutter
5+
documentation: ug
6+
---
7+
8+
# Essential Studio for Flutter Release Notes
9+
10+
{% include release-info.html date="October 12, 2021" version="v19.3.0.45" %}
11+
12+
13+
{% directory path: _includes/release-notes/v19.3.0.45
14+
%}
15+
16+
{% include {{file.url}} %}
17+
18+
{% enddirectory %}

Flutter/Release-notes/v19.3.0.46.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Essential Studio for Flutter Weekly Nuget Release Release Notes
3+
description: Essential Studio for Flutter Weekly Nuget Release Release Notes
4+
platform: flutter
5+
documentation: ug
6+
---
7+
8+
# Essential Studio for Flutter Release Notes
9+
10+
{% include release-info.html date="October 19, 2021" version="v19.3.0.46" %}
11+
12+
13+
{% directory path: _includes/release-notes/v19.3.0.46
14+
%}
15+
16+
{% include {{file.url}} %}
17+
18+
{% enddirectory %}

Flutter/Release-notes/v19.3.0.47.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: Essential Studio for Flutter Weekly Nuget Release Release Notes
3+
description: Essential Studio for Flutter Weekly Nuget Release Release Notes
4+
platform: flutter
5+
documentation: ug
6+
---
7+
8+
# Essential Studio for Flutter Release Notes
9+
10+
{% include release-info.html date="October 26, 2021" version="v19.3.0.47" %}
11+
12+
13+
{% directory path: _includes/release-notes/v19.3.0.47 %}
14+
15+
{% include {{file.url}} %}
16+
17+
{% enddirectory %}

Flutter/cartesian-charts/accessibility.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation: ug
1111

1212
## Sufficient contrast
1313

14-
The `SfCartesianChart` [theming](https://help.syncfusion.com/flutter/themes/themes) support offers a consistent and standardized look, as well as the ability to set the colors for all UI elements.
14+
The [`SfCartesianChart`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/SfCartesianChart-class.html) [`theming`](https://help.syncfusion.com/flutter/themes) support offers a consistent and standardized look, as well as the ability to set the colors for all UI elements.
1515

1616
The customization the colors can be done for the following chart elements.
1717
* [Chart title](https://help.syncfusion.com/flutter/cartesian-charts/chart-title)
@@ -33,7 +33,7 @@ The customization the colors can be done for the following chart elements.
3333

3434
## Large fonts
3535

36-
The `SfCartesianChart` font size can be adjusted automatically based on device settings and the font size scaled based on the `MediaQueryData.textScaleFactor`. And also it allows to change the font size of all elements in Cartesian chart.
36+
The [`SfCartesianChart`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/SfCartesianChart-class.html) font size can be adjusted automatically based on device settings and the font size scaled based on the [`MediaQueryData.textScaleFactor`](https://api.flutter.dev/flutter/widgets/MediaQueryData/textScaleFactor.html). And also it allows to change the font size of all elements in Cartesian chart.
3737
* [Chart title](https://help.syncfusion.com/flutter/cartesian-charts/chart-title)
3838
* [Axis title](https://help.syncfusion.com/flutter/cartesian-charts/axis-customization#axis-title)
3939
* [Axis label](https://help.syncfusion.com/flutter/cartesian-charts/axis-customization#axis-label-customization)
@@ -47,8 +47,8 @@ The `SfCartesianChart` font size can be adjusted automatically based on device s
4747

4848
## Easily tappable targets
4949

50-
The `SfCartesianChart` Provides callback support to notify when tapping on the essential elements in the chart.
50+
The [`SfCartesianChart`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/SfCartesianChart-class.html) provides callback support to notify when tapping on the essential elements in the chart.
5151
* [Axis label](https://help.syncfusion.com/flutter/cartesian-charts/callbacks#onaxislabeltapped)
5252
* [Data points](https://help.syncfusion.com/flutter/cartesian-charts/callbacks#onpointtapped)
5353
* [Data label](https://help.syncfusion.com/flutter/cartesian-charts/callbacks#ondatalabeltapped)
54-
* [Legend](https://help.syncfusion.com/flutter/cartesian-charts/callbacks#onlegendtapped)
54+
* [Legend](https://help.syncfusion.com/flutter/cartesian-charts/callbacks#onlegendtapped)

Flutter/cartesian-charts/annotations.md

Lines changed: 85 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/
4949

5050
**Positioning based on coordinateUnit as point**
5151

52-
To position the annotation based on axis, set the [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/x.html) and [`y`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/y.html) properties based on axis range values, and set the [`coordinateUnit`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html) value as [`point`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html).
52+
To position the annotation based on axis, set the [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/x.html) and [`y`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/y.html) properties based on axis range values, and set the [`coordinateUnit`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html) value as [`CoordinateUnit.point`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html).
5353

5454

5555
{% highlight dart %}
@@ -82,7 +82,7 @@ To position the annotation based on axis, set the [`x`](https://pub.dev/document
8282

8383
**Positioning based on coordinateUnit as pixels**
8484

85-
To position the annotation based on the pixel values, set the [`CoordinateUnit`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html) value as [`logicalPixel`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html), and the pixel values in [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/x.html) and [`y`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/y.html) properties of annotation as shown in the following code snippet.
85+
To position the annotation based on the pixel values, set the [`CoordinateUnit`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html) value as [`CoordinateUnit.logicalPixel`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html), and the pixel values in [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/x.html) and [`y`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/y.html) properties of annotation as shown in the following code snippet.
8686

8787
{% highlight dart %}
8888

@@ -118,7 +118,7 @@ To position the annotation based on the pixel values, set the [`CoordinateUnit`]
118118

119119
**Positioning based on coordinateUnit as percentage**
120120

121-
To position the annotation based on the percentage values, set the [`CoordinateUnit`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html) value as [`percentage`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html), and the percentage values in [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/x.html) and [`y`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/y.html) properties of annotation as shown in the following code snippet.
121+
To position the annotation based on the percentage values, set the [`CoordinateUnit`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html) value as [`CoordinateUnit.percentage`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/coordinateUnit.html), and the percentage values in [`x`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/x.html) and [`y`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/CartesianChartAnnotation/y.html) properties of annotation as shown in the following code snippet.
122122

123123

124124
{% highlight dart %}
@@ -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-class.html) or [`AnnotationRegion.chart`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/AnnotationRegion-class.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(
@@ -250,30 +250,51 @@ You can add multiple annotations to the Chart by adding multiple widgets to the
250250
Widget build(BuildContext context) {
251251
return Scaffold(
252252
body: SafeArea(
253-
child: Center(
254-
child: Container(
255-
child: SfCartesianChart(
256-
primaryXAxis: CategoryAxis(),
257-
annotations: <CartesianChartAnnotation>[
258-
// first annotation
259-
CartesianChartAnnotation(
260-
child: Container(child: const Text('High')),
261-
coordinateUnit: CoordinateUnit.logicalPixel,
262-
x: 90,
263-
y: 200),
264-
// second annotation
265-
CartesianChartAnnotation(
266-
child: Container(child: const Text('Low')),
267-
coordinateUnit: CoordinateUnit.logicalPixel,
268-
x: 170,
269-
y: 200)
270-
],
271-
)
272-
)
273-
)
274-
),
275-
);
276-
}
253+
child: Center(
254+
child: Container(
255+
child: SfCartesianChart(
256+
primaryXAxis: CategoryAxis(),
257+
primaryYAxis: NumericAxis(interval: 5),
258+
annotations: <CartesianChartAnnotation>[
259+
// first annotation
260+
CartesianChartAnnotation(
261+
widget: Container(child: const Text('High')),
262+
coordinateUnit: CoordinateUnit.point,
263+
x: 'China',
264+
y: 6,
265+
),
266+
// second annotation
267+
CartesianChartAnnotation(
268+
widget: Container(child: const Text('Low')),
269+
coordinateUnit: CoordinateUnit.point,
270+
x: 'Japan',
271+
y: 6)
272+
],
273+
series: <CartesianSeries<ChartData, String>>[
274+
StepLineSeries<ChartData, String>(
275+
dataSource: <ChartData>[
276+
ChartData('UK', 6),
277+
ChartData('China', 11),
278+
ChartData('USA', 20),
279+
ChartData('Japan', 14),
280+
ChartData('France', 10)
281+
],
282+
xValueMapper: (ChartData sales, _) => sales.year,
283+
yValueMapper: (ChartData sales, _) => sales.sales)
284+
]
285+
)
286+
)
287+
)
288+
)
289+
);
290+
}
291+
}
292+
293+
class ChartData {
294+
ChartData(this.year, this.sales);
295+
final String year;
296+
final double sales;
297+
}
277298

278299
{% endhighlight %}
279300

@@ -364,28 +385,50 @@ Chart supports watermark which allows you to mark the specific area of interest
364385
child: Center(
365386
child: Container(
366387
child: SfCartesianChart(
367-
annotations: <CartesianChartAnnotation>[
368-
CartesianChartAnnotation(
369-
child: Container(
388+
primaryXAxis: CategoryAxis(labelPlacement: LabelPlacement.betweenTicks),
389+
annotations: <CartesianChartAnnotation>[
390+
CartesianChartAnnotation(
391+
widget: Container(
370392
child: const Text(
371-
'€ - \$ ',
393+
'€ - \$ ',
372394
style: TextStyle(
373395
color: Color.fromRGBO(216, 225, 227, 1),
374396
fontWeight: FontWeight.bold,
375397
fontSize: 80),
376-
),
377398
),
378-
coordinateUnit: CoordinateUnit.point,
379-
region: AnnotationRegion.chart,
380-
x: 3,
381-
y: 38,
382-
)
383-
]
399+
),
400+
coordinateUnit: CoordinateUnit.point,
401+
region: AnnotationRegion.chart,
402+
x: 'apr',
403+
y: 38,
404+
)
405+
],
406+
series: <ChartSeries<ChartData, String>>[
407+
LineSeries<ChartData, String>(
408+
dataSource: <ChartData>[
409+
ChartData('jan', 21),
410+
ChartData('feb', 24),
411+
ChartData('mar', 36),
412+
ChartData('apr', 38),
413+
ChartData('may', 54),
414+
ChartData('jun', 54),
415+
ChartData('jul', 70),
416+
],
417+
xValueMapper: (ChartData sales, _) => sales.year,
418+
yValueMapper: (ChartData sales, _) => sales.sales),
419+
],
420+
)
384421
)
385422
)
386423
)
387-
)
388-
);
424+
);
425+
}
426+
}
427+
428+
class ChartData {
429+
ChartData(this.year, this.sales);
430+
final String year;
431+
final double sales;
389432
}
390433

391434
{% endhighlight %}

0 commit comments

Comments
 (0)