|
| 1 | +using Syncfusion.Maui.Charts; |
| 2 | + |
| 3 | +namespace PolarChartSample |
| 4 | +{ |
| 5 | + public partial class MainPage : ContentPage |
| 6 | + { |
| 7 | + public MainPage() |
| 8 | + { |
| 9 | + InitializeComponent(); |
| 10 | + |
| 11 | + //this.BindingContext = new ViewModel(); |
| 12 | + //SfPolarChart polarChart = new SfPolarChart(); |
| 13 | + //polarChart.Title = new Label() { Text = "Plant Analysis", HorizontalTextAlignment = TextAlignment.Center }; |
| 14 | + //polarChart.Legend = new ChartLegend(); |
| 15 | + //polarChart.PrimaryAxis = new CategoryAxis(); |
| 16 | + //polarChart.SecondaryAxis = new NumericalAxis() |
| 17 | + //{ |
| 18 | + // Maximum = 100 |
| 19 | + //}; |
| 20 | + |
| 21 | + //PolarLineSeries series1 = new PolarLineSeries() |
| 22 | + //{ |
| 23 | + // ItemsSource = (new ViewModel()).PlantDetails, |
| 24 | + // XBindingPath = "Direction", |
| 25 | + // YBindingPath = "Tree", |
| 26 | + // Label = "Tree", |
| 27 | + // EnableTooltip = true, |
| 28 | + // ShowDataLabels = true, |
| 29 | + //}; |
| 30 | + |
| 31 | + //PolarLineSeries series2 = new PolarLineSeries() |
| 32 | + //{ |
| 33 | + // ItemsSource = (new ViewModel()).PlantDetails, |
| 34 | + // XBindingPath = "Direction", |
| 35 | + // YBindingPath = "Weed", |
| 36 | + // Label = "Weed", |
| 37 | + // EnableTooltip = true, |
| 38 | + // ShowDataLabels = true, |
| 39 | + //}; |
| 40 | + |
| 41 | + //PolarLineSeries series3 = new PolarLineSeries() |
| 42 | + //{ |
| 43 | + // ItemsSource = (new ViewModel()).PlantDetails, |
| 44 | + // XBindingPath = "Direction", |
| 45 | + // YBindingPath = "Flower", |
| 46 | + // Label = "Flower", |
| 47 | + // EnableTooltip = true, |
| 48 | + // ShowDataLabels = true, |
| 49 | + //}; |
| 50 | + |
| 51 | + //polarChart.Series.Add(series1); |
| 52 | + //polarChart.Series.Add(series2); |
| 53 | + //polarChart.Series.Add(series3); |
| 54 | + //this.Content = polarChart; |
| 55 | + } |
| 56 | + } |
| 57 | +} |
0 commit comments