-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainPage.xaml
More file actions
41 lines (30 loc) · 1.55 KB
/
MainPage.xaml
File metadata and controls
41 lines (30 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:model="clr-namespace:PolarChartSample"
xmlns:chart="clr-namespace:Syncfusion.Maui.Charts;assembly=Syncfusion.Maui.Charts"
x:Class="PolarChartSample.MainPage">
<ContentPage.BindingContext>
<model:ViewModel/>
</ContentPage.BindingContext>
<chart:SfPolarChart>
<chart:SfPolarChart.Title>
<Label Text="Plant Analysis" HorizontalTextAlignment="Center"/>
</chart:SfPolarChart.Title>
<chart:SfPolarChart.Legend>
<chart:ChartLegend/>
</chart:SfPolarChart.Legend>
<chart:SfPolarChart.PrimaryAxis>
<chart:CategoryAxis/>
</chart:SfPolarChart.PrimaryAxis>
<chart:SfPolarChart.SecondaryAxis>
<chart:NumericalAxis Maximum="100"/>
</chart:SfPolarChart.SecondaryAxis>
<chart:PolarLineSeries ItemsSource="{Binding PlantDetails}" XBindingPath="Direction"
YBindingPath="Tree" Label="Tree" EnableTooltip="True" ShowDataLabels="True"/>
<chart:PolarLineSeries ItemsSource="{Binding PlantDetails}" XBindingPath="Direction"
YBindingPath="Weed" Label="Weed" EnableTooltip="True" ShowDataLabels="True"/>
<chart:PolarLineSeries ItemsSource="{Binding PlantDetails}" XBindingPath="Direction"
YBindingPath="Flower" Label="Flower" EnableTooltip="True" ShowDataLabels="True"/>
</chart:SfPolarChart>
</ContentPage>