@@ -179,11 +179,11 @@ To create a polar chart, you can add a [PolarLineSeries](https://help.syncfusion
179
179
</chart : NumericalAxis >
180
180
</chart : SfPolarChart .SecondaryAxis>
181
181
182
- <chart : PolarLineSeries ItemsSource =" {Binding PlantDetails}" XBindingPath =" Direction" YBindingPath =" Tree" />
182
+ <chart : PolarLineSeries ItemsSource =" {Binding PlantDetails}" XBindingPath =" Direction" YBindingPath =" Tree" />
183
183
184
- <chart : PolarLineSeries ItemsSource =" {Binding PlantDetails}" XBindingPath =" Direction" YBindingPath =" Weed" />
184
+ <chart : PolarLineSeries ItemsSource =" {Binding PlantDetails}" XBindingPath =" Direction" YBindingPath =" Weed" />
185
185
186
- <chart : PolarLineSeries ItemsSource =" {Binding PlantDetails}" XBindingPath =" Direction" YBindingPath =" Flower" />
186
+ <chart : PolarLineSeries ItemsSource =" {Binding PlantDetails}" XBindingPath =" Direction" YBindingPath =" Flower" />
187
187
</chart : SfPolarChart >
188
188
```
189
189
@@ -203,23 +203,25 @@ NumericalAxis secondaryAxis = new NumericalAxis()
203
203
chart .SecondaryAxis = secondaryAxis ;
204
204
205
205
// Initialize the series
206
- PolarLineSeries series = new PolarLineSeries ();
207
- series .ItemsSource = (new ViewModel ()).PlantDetails ;
208
- series .XBindingPath = " Direction" ;
209
- series .YBindingPath = " Tree" ;
206
+ PolarLineSeries series1 = new PolarLineSeries ();
207
+ series1 .ItemsSource = (new ViewModel ()).PlantDetails ;
208
+ series1 .XBindingPath = " Direction" ;
209
+ series1 .YBindingPath = " Tree" ;
210
210
211
- PolarLineSeries series = new PolarLineSeries ();
212
- series .ItemsSource = (new ViewModel ()).PlantDetails ;
213
- series .XBindingPath = " Direction" ;
214
- series .YBindingPath = " Weed" ;
211
+ PolarLineSeries series2 = new PolarLineSeries ();
212
+ series2 .ItemsSource = (new ViewModel ()).PlantDetails ;
213
+ series2 .XBindingPath = " Direction" ;
214
+ series2 .YBindingPath = " Weed" ;
215
215
216
- PolarLineSeries series = new PolarLineSeries ();
217
- series .ItemsSource = (new ViewModel ()).PlantDetails ;
218
- series .XBindingPath = " Direction" ;
219
- series .YBindingPath = " Flower" ;
216
+ PolarLineSeries series3 = new PolarLineSeries ();
217
+ series3 .ItemsSource = (new ViewModel ()).PlantDetails ;
218
+ series3 .XBindingPath = " Direction" ;
219
+ series3 .YBindingPath = " Flower" ;
220
220
221
221
// Adding Series to the Chart Series Collection
222
- chart .Series .Add (series );
222
+ chart .Series .Add (series1 );
223
+ chart .Series .Add (series2 );
224
+ chart .Series .Add (series3 );
223
225
```
224
226
225
227
## Add a title
@@ -256,17 +258,17 @@ The [ShowDataLabels](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.
256
258
<chart : SfPolarChart >
257
259
. . .
258
260
<chart : PolarLineSeries ShowDataLabels =" True" >
259
- </chart : PolarLineSeries >
261
+ </chart : PolarLineSeries >
260
262
</chart : SfPolarChart >
261
263
```
262
264
263
265
###### C#
264
266
``` C#
265
267
SfPolarChart chart = new SfPolarChart ()
266
268
. . .
267
- PolarLineSeries series = new PolarLineSeries ();
268
- series .ShowDataLabels = true ;
269
- chart .Series .Add (series );
269
+ PolarLineSeries series1 = new PolarLineSeries ();
270
+ series1 .ShowDataLabels = true ;
271
+ chart .Series .Add (series1 );
270
272
```
271
273
272
274
## Enable a legend
@@ -275,7 +277,7 @@ The legend provides information about the data point displayed in the chart. The
275
277
276
278
###### Xaml
277
279
``` xaml
278
- <chart : SfPolarChart >
280
+ <chart : SfPolarChart >
279
281
. . .
280
282
<chart : SfPolarChart .Legend>
281
283
<chart : ChartLegend />
@@ -309,23 +311,23 @@ chart.Legend = new ChartLegend();
309
311
310
312
###### C#
311
313
``` C#
312
- PolarLineSeries series = new PolarLineSeries ();
313
- series .ItemsSource = (new ViewModel ()).PlantDetails ;
314
- series .XBindingPath = " Direction" ;
315
- series .YBindingPath = " Tree" ;
316
- series .Label = " Tree" ;
317
-
318
- PolarLineSeries series = new PolarLineSeries ();
319
- series .ItemsSource = (new ViewModel ()).PlantDetails ;
320
- series .XBindingPath = " Direction" ;
321
- series .YBindingPath = " Weed" ;
322
- series .Label = " Weed" ;
323
-
324
- PolarLineSeries series = new PolarLineSeries ();
325
- series .ItemsSource = (new ViewModel ()).PlantDetails ;
326
- series .XBindingPath = " Direction" ;
327
- series .YBindingPath = " Flower" ;
328
- series .Label = " Flower" ;
314
+ PolarLineSeries series1 = new PolarLineSeries ();
315
+ series1 .ItemsSource = (new ViewModel ()).PlantDetails ;
316
+ series1 .XBindingPath = " Direction" ;
317
+ series1 .YBindingPath = " Tree" ;
318
+ series1 .Label = " Tree" ;
319
+
320
+ PolarLineSeries series2 = new PolarLineSeries ();
321
+ series2 .ItemsSource = (new ViewModel ()).PlantDetails ;
322
+ series2 .XBindingPath = " Direction" ;
323
+ series2 .YBindingPath = " Weed" ;
324
+ series2 .Label = " Weed" ;
325
+
326
+ PolarLineSeries series3 = new PolarLineSeries ();
327
+ series3 .ItemsSource = (new ViewModel ()).PlantDetails ;
328
+ series3 .XBindingPath = " Direction" ;
329
+ series3 .YBindingPath = " Flower" ;
330
+ series3 .Label = " Flower" ;
329
331
```
330
332
331
333
## Enable tooltip
@@ -343,8 +345,8 @@ Tooltips are used to display information about a segment when a user hovers over
343
345
344
346
###### C#
345
347
``` C#
346
- PolarLineSeries series = new PolarLineSeries ();
347
- series .EnableTooltip = true ;
348
+ PolarLineSeries series1 = new PolarLineSeries ();
349
+ series1 .EnableTooltip = true ;
348
350
```
349
351
350
352
The following code example gives you the complete code of above configurations.
@@ -422,7 +424,7 @@ The following code example gives you the complete code of above configurations.
422
424
};
423
425
chart .SecondaryAxis = secondaryAxis ;
424
426
425
- PolarLineSeries series = new PolarLineSeries ()
427
+ PolarLineSeries series1 = new PolarLineSeries ()
426
428
{
427
429
ItemsSource = (new ViewModel ()).PlantDetails ,
428
430
XBindingPath = " Direction" ,
@@ -432,7 +434,7 @@ The following code example gives you the complete code of above configurations.
432
434
ShowDataLabels = " True"
433
435
};
434
436
435
- PolarLineSeries series = new PolarLineSeries ()
437
+ PolarLineSeries series2 = new PolarLineSeries ()
436
438
{
437
439
ItemsSource = (new ViewModel ()).PlantDetails ,
438
440
XBindingPath = " Direction" ,
@@ -442,7 +444,7 @@ The following code example gives you the complete code of above configurations.
442
444
ShowDataLabels = " True"
443
445
};
444
446
445
- PolarLineSeries series = new PolarLineSeries ()
447
+ PolarLineSeries series3 = new PolarLineSeries ()
446
448
{
447
449
ItemsSource = (new ViewModel ()).PlantDetails ,
448
450
XBindingPath = " Direction" ,
@@ -452,7 +454,9 @@ The following code example gives you the complete code of above configurations.
452
454
ShowDataLabels = " True"
453
455
};
454
456
455
- chart .Series .Add (series );
457
+ chart .Series .Add (series1 );
458
+ chart .Series .Add (series2 );
459
+ chart .Series .Add (series3 );
456
460
this .Content = chart ;
457
461
}
458
462
}
0 commit comments