Skip to content

Commit a6a8434

Browse files
committed
Updated the code snippet
1 parent 4271e75 commit a6a8434

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ chart.SecondaryAxis = secondaryAxis;
162162

163163
## Populate Chart with data
164164

165-
To create a polar chart, you can add a [PolarAreaSeries](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.PolarAreaSeries.html?tabs=tabid-1%2Ctabid-4) to the polar chart [Series](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.SfPolarChart.html#Syncfusion_Maui_Charts_SfPolarChart_Series) property of the chart, and then bind the `PlantData` property of the above `ViewModel` to the `PolarAreaSeries.ItemsSource` as follows.
165+
To create a polar chart, you can add a [PolarLineSeries](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.PolarLineSeries.html?tabs=tabid-1%2Ctabid-4) to the polar chart [Series](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.SfPolarChart.html#Syncfusion_Maui_Charts_SfPolarChart_Series) property of the chart, and then bind the `PlantData` property of the above `ViewModel` to the `PolarLineSeries.ItemsSource` as follows.
166166

167167
* In order to plot the series, the [XBindingPath](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartSeries.html#Syncfusion_Maui_Charts_ChartSeries_XBindingPath) and [YBindingPath](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.XYDataSeries.html#Syncfusion_Maui_Charts_XYDataSeries_YBindingPath) properties need to be configured correctly. These properties allow the chart to retrieve values from the corresponding properties in the data model.
168168

@@ -203,17 +203,17 @@ NumericalAxis secondaryAxis = new NumericalAxis()
203203
chart.SecondaryAxis = secondaryAxis;
204204

205205
//Initialize the series
206-
PolarLineSeries series = new PolarAreaSeries();
206+
PolarLineSeries series = new PolarLineSeries();
207207
series.ItemsSource = (new ViewModel()).PlantDetails;
208208
series.XBindingPath = "Direction";
209209
series.YBindingPath = "Tree";
210210

211-
PolarLineSeries series = new PolarAreaSeries();
211+
PolarLineSeries series = new PolarLineSeries();
212212
series.ItemsSource = (new ViewModel()).PlantDetails;
213213
series.XBindingPath = "Direction";
214214
series.YBindingPath = "Weed";
215215

216-
PolarLineSeries series = new PolarAreaSeries();
216+
PolarLineSeries series = new PolarLineSeries();
217217
series.ItemsSource = (new ViewModel()).PlantDetails;
218218
series.XBindingPath = "Direction";
219219
series.YBindingPath = "Flower";

0 commit comments

Comments
 (0)