Skip to content

Commit 4878a16

Browse files
author
Surya Karan Raja
authored
Update README.md
1 parent b043aa5 commit 4878a16

File tree

1 file changed

+43
-39
lines changed

1 file changed

+43
-39
lines changed

README.md

+43-39
Original file line numberDiff line numberDiff line change
@@ -203,23 +203,25 @@ NumericalAxis secondaryAxis = new NumericalAxis()
203203
chart.SecondaryAxis = secondaryAxis;
204204

205205
//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";
210210

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";
215215

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";
220220

221221
//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);
223225
```
224226

225227
## Add a title
@@ -264,9 +266,9 @@ The [ShowDataLabels](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.
264266
```C#
265267
SfPolarChart chart = new SfPolarChart()
266268
. . .
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);
270272
```
271273

272274
## Enable a legend
@@ -309,23 +311,23 @@ chart.Legend = new ChartLegend();
309311

310312
###### C#
311313
```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";
329331
```
330332

331333
## Enable tooltip
@@ -343,8 +345,8 @@ Tooltips are used to display information about a segment when a user hovers over
343345

344346
###### C#
345347
```C#
346-
PolarLineSeries series = new PolarLineSeries();
347-
series.EnableTooltip = true;
348+
PolarLineSeries series1 = new PolarLineSeries();
349+
series1.EnableTooltip = true;
348350
```
349351

350352
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.
422424
};
423425
chart.SecondaryAxis = secondaryAxis;
424426

425-
PolarLineSeries series = new PolarLineSeries()
427+
PolarLineSeries series1 = new PolarLineSeries()
426428
{
427429
ItemsSource = (new ViewModel()).PlantDetails,
428430
XBindingPath = "Direction",
@@ -432,7 +434,7 @@ The following code example gives you the complete code of above configurations.
432434
ShowDataLabels="True"
433435
};
434436

435-
PolarLineSeries series = new PolarLineSeries()
437+
PolarLineSeries series2 = new PolarLineSeries()
436438
{
437439
ItemsSource = (new ViewModel()).PlantDetails,
438440
XBindingPath = "Direction",
@@ -442,7 +444,7 @@ The following code example gives you the complete code of above configurations.
442444
ShowDataLabels="True"
443445
};
444446

445-
PolarLineSeries series = new PolarLineSeries()
447+
PolarLineSeries series3 = new PolarLineSeries()
446448
{
447449
ItemsSource = (new ViewModel()).PlantDetails,
448450
XBindingPath = "Direction",
@@ -452,7 +454,9 @@ The following code example gives you the complete code of above configurations.
452454
ShowDataLabels="True"
453455
};
454456

455-
chart.Series.Add(series);
457+
chart.Series.Add(series1);
458+
chart.Series.Add(series2);
459+
chart.Series.Add(series3);
456460
this.Content = chart;
457461
}
458462
}

0 commit comments

Comments
 (0)