You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [ChartAnnotations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartAnnotations.html)property allows to add annotations to the chart. Specify the ID of the element that needs to be displayed in the chart area by using the [Content](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartAnnotation.html#Syncfusion_Blazor_Charts_ChartAnnotation_Content) property of the annotation.
18
+
The [ChartAnnotations](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartAnnotations.html) allows annotations to be added to the chart. The [Content](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartAnnotation.html#Syncfusion_Blazor_Charts_ChartAnnotation_Content) property specifies the element to display in the chart area.
@@ -39,7 +38,7 @@ You can learn how to add annotations to Blazor Charts by watching the video belo
39
38
</ChartSeriesCollection>
40
39
</SfChart>
41
40
42
-
@code{
41
+
@code{
43
42
string data = "France";
44
43
45
44
public class ChartData
@@ -49,15 +48,15 @@ You can learn how to add annotations to Blazor Charts by watching the video belo
49
48
}
50
49
51
50
public List<ChartData> MedalDetails = new List<ChartData>
52
-
{
53
-
new ChartData{ Country= "USA", Gold=50 },
54
-
new ChartData{ Country= "China", Gold=40 },
55
-
new ChartData{ Country= "Japan", Gold=70 },
56
-
new ChartData{ Country= "Australia", Gold=60},
57
-
new ChartData{ Country= "France", Gold=50 },
58
-
new ChartData{ Country= "Germany", Gold=40 },
59
-
new ChartData{ Country= "Italy", Gold=40 },
60
-
new ChartData{ Country= "Sweden", Gold=30 }
51
+
{
52
+
new ChartData{ Country= "USA", Gold = 50 },
53
+
new ChartData{ Country= "China", Gold = 40 },
54
+
new ChartData{ Country= "Japan", Gold = 70 },
55
+
new ChartData{ Country= "Australia", Gold = 60},
56
+
new ChartData{ Country= "France", Gold = 50 },
57
+
new ChartData{ Country= "Germany", Gold = 40 },
58
+
new ChartData{ Country= "Italy", Gold = 40 },
59
+
new ChartData{ Country= "Sweden", Gold = 30 }
61
60
};
62
61
}
63
62
@@ -67,15 +66,14 @@ You can learn how to add annotations to Blazor Charts by watching the video belo
67
66
68
67
## Region
69
68
70
-
The [Region](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartAnnotation.html#Syncfusion_Blazor_Charts_ChartAnnotation_Region) property can be used to insert annotations in relation to a series or a chart. By default, it is positioned with respect to a[Chart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.Regions.html#Syncfusion_Blazor_Charts_Regions_Chart).
69
+
Use the [Region](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartAnnotation.html#Syncfusion_Blazor_Charts_ChartAnnotation_Region) property to position annotations relative to a series or the chart. By default, annotations are positioned with respect to the[Chart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.Regions.html#Syncfusion_Blazor_Charts_Regions_Chart).
@@ -91,7 +89,7 @@ The [Region](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.Char
91
89
</ChartSeriesCollection>
92
90
</SfChart>
93
91
94
-
@code{
92
+
@code{
95
93
string Country = "Australia";
96
94
97
95
public class ChartData
@@ -101,33 +99,32 @@ The [Region](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.Char
101
99
}
102
100
103
101
public List<ChartData> MedalDetails = new List<ChartData>
104
-
{
105
-
new ChartData{ Country= "USA", Gold=50 },
106
-
new ChartData{ Country= "China", Gold=40 },
107
-
new ChartData{ Country= "Japan", Gold=70 },
108
-
new ChartData{ Country= "Australia", Gold=60},
109
-
new ChartData{ Country= "France", Gold=50 },
110
-
new ChartData{ Country= "Germany", Gold=40 },
111
-
new ChartData{ Country= "Italy", Gold=40 },
112
-
new ChartData{ Country= "Sweden", Gold=30 }
102
+
{
103
+
new ChartData{ Country= "USA", Gold = 50 },
104
+
new ChartData{ Country= "China", Gold = 40 },
105
+
new ChartData{ Country= "Japan", Gold = 70 },
106
+
new ChartData{ Country= "Australia", Gold = 60},
107
+
new ChartData{ Country= "France", Gold = 50 },
108
+
new ChartData{ Country= "Germany", Gold = 40 },
109
+
new ChartData{ Country= "Italy", Gold = 40 },
110
+
new ChartData{ Country= "Sweden", Gold = 30 }
113
111
};
114
112
}
115
113
116
114
```
117
115
118
116

119
117
120
-
## Co-ordinate units
118
+
## Coordinate units
121
119
122
-
The [CoordinateUnits](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartAnnotation.html#Syncfusion_Blazor_Charts_ChartAnnotation_CoordinateUnits) property allows to specify the annotation's coordinate units either in[Pixel](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.Units.html#Syncfusion_Blazor_Charts_Units_Pixel) or [Point](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.Units.html#Syncfusion_Blazor_Charts_Units_Point).
120
+
Set the annotation's coordinate units using the [CoordinateUnits](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartAnnotation.html#Syncfusion_Blazor_Charts_ChartAnnotation_CoordinateUnits) property. Choose between[Pixel](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.Units.html#Syncfusion_Blazor_Charts_Units_Pixel) or [Point](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.Units.html#Syncfusion_Blazor_Charts_Units_Point).
0 commit comments