public Page2() { dashBoard1 = new ChartView(); dashBoard1.WidthRequest = 400; dashBoard1.HeightRequest = 300; dashBoard1.Chart.Aspect.View3D = false; Steema.TeeChart.Styles.World world1 = new Steema.TeeChart.Styles.World(); dashBoard1.Chart.Series.Add(world1); world1.FillSampleValues(); world1.UsePalette = false; world1.UseColorRange = false; world1.SeriesColor = Color.White; dashBoard1.Chart.Panel.Color = Color.Blue; dashBoard1.Chart.Panel.Gradient.Visible = false; dashBoard1.Chart.Walls.Visible = false; dashBoard1.Chart.Title.Text = "Maps"; dashBoard1.Chart.Title.Alignment = TextAlignment.Start; dashBoard1.Chart.Title.Font.Size = 12; dashBoard1.Chart.Title.Font.Color = Color.White; dashBoard1.Chart.Axes.Visible = false; dashBoard1.Chart.Legend.Visible = false; Content = new StackLayout { Children = { dashBoard1 }, VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, }; }
public Page2() { // NavigationPage.SetHasNavigationBar(this, false); dashBoard1 = new Chart(); dashBoard1.Aspect.View3D = false; Steema.TeeChart.Styles.World world1 = new Steema.TeeChart.Styles.World(); dashBoard1.Series.Add(world1); world1.FillSampleValues(); world1.UsePalette = false; world1.UseColorRange = false; world1.SeriesColor = Color.White; dashBoard1.Panel.Color = Color.Blue; dashBoard1.Panel.Gradient.Visible = false; dashBoard1.Walls.Visible = false; dashBoard1.Title.Text = "Maps"; dashBoard1.Title.Alignment = TextAlignment.Start; dashBoard1.Title.Font.Size = 12; dashBoard1.Title.Font.Color = Color.White; dashBoard1.Axes.Visible = false; dashBoard1.Legend.Visible = false; DashView1 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, }; DashView1.Model = dashBoard1; Content = new StackLayout { Children = { DashView1 } }; }