//Create Animations Init private void CreateAnimations() { // Bar Chart Animation BarAnimation = new Steema.TeeChart.Animations.ChartPartAnimation(tChart2.Chart); BarAnimation.EasingFunction = new Steema.TeeChart.Animations.EasingFunctions.Linear(); BarAnimation.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseIn; BarAnimation.Target = Steema.TeeChart.ChartClickedPartStyle.Series; BarAnimation.TranslateStyle = Steema.TeeChart.Animations.TransformTranslate.FromBottom; // Donut Chart Animation DonutTimer.Tick += DonutTimer_Tick; DonutTimer.Interval = 5; DonutTimer.Enabled = false; DonutTimer.Stop(); }
public SalesFigures() { tChart1 = new Chart(); tChart1.Aspect.View3D = false; tChart1.Zoom.Active = true; tChart1.Aspect.ZoomText = true; tChart1.Panning.Active = true; this.bar1 = new Bar(); this.bar2 = new Bar(); this.seriesAnimation1 = new Steema.TeeChart.Tools.SeriesAnimation(); this.chartPartAnimation1 = new Steema.TeeChart.Animations.ChartPartAnimation(); this.tChart1.Animations.Add(this.chartPartAnimation1); this.tChart1.Aspect.ColorPaletteIndex = 20; this.tChart1.Aspect.View3D = false; this.tChart1.Axes.Bottom.Grid.DrawEvery = 2; this.tChart1.Axes.Bottom.Grid.Visible = false; this.tChart1.Axes.Bottom.Labels.Font.Brush.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart1.Axes.Bottom.Labels.Font.Size = 9; this.tChart1.Axes.Bottom.Title.Font.Brush.Color = Color.FromRgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tChart1.Axes.Bottom.Title.Font.Size = 11; this.tChart1.Axes.Left.AxisPen.Visible = false; this.tChart1.Axes.Left.Grid.DrawEvery = 2; this.tChart1.Axes.Left.Grid.Style = Steema.TeeChart.Drawing.DashStyle.Solid; this.tChart1.Axes.Left.Labels.Font.Brush.Color = Color.Gray; this.tChart1.Axes.Left.Labels.Font.Size = 9; this.tChart1.Axes.Left.MinorTicks.Visible = false; this.tChart1.Axes.Left.Ticks.Visible = false; this.tChart1.Axes.Left.Title.Caption = "$ 000s"; this.tChart1.Axes.Left.Title.Font.Brush.Color = Color.FromRgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tChart1.Axes.Left.Title.Font.Size = 11; this.tChart1.Axes.Left.Title.Lines = new string[] { "$ 000s" }; this.tChart1.Axes.Right.AxisPen.Visible = false; this.tChart1.Axes.Right.Labels.Font.Brush.Color = Color.FromRgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tChart1.Axes.Right.Labels.Font.Size = 9; this.tChart1.Axes.Top.Labels.Font.Brush.Color = Color.FromRgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tChart1.Axes.Top.Labels.Font.Size = 9; this.tChart1.Header.Font.Brush.Color = Color.Gray; this.tChart1.Header.Font.Size = 12; this.tChart1.Header.Lines = new string[] { tChart1.Zoom.Active.ToString() };//{"Sales Figures"}; this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart1.Legend.Font.Brush.Color = Color.FromRgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tChart1.Legend.Font.Size = 9; this.tChart1.Legend.Pen.Visible = false; this.tChart1.Legend.Shadow.Visible = false; this.tChart1.Legend.Transparent = true; this.tChart1.Panel.Brush.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Panel.Brush.Gradient.Visible = false; this.tChart1.Series.Add(this.bar1); this.tChart1.Series.Add(this.bar2); this.tChart1.Tools.Add(this.seriesAnimation1); this.tChart1.Walls.Back.Brush.Visible = false; this.tChart1.Walls.Back.Transparent = true; this.tChart1.Walls.Back.Visible = false; // // bar1 // this.bar1.BarRound = Steema.TeeChart.Styles.BarRounding.AtValue; this.bar1.BarStyle = Steema.TeeChart.Styles.BarStyles.RoundRectangle; this.bar1.RoundSize = 5; this.bar1.BarWidthPercent = 80; this.bar1.Brush.Color = Color.FromRgb(((int)(((byte)(220)))), ((int)(((byte)(92)))), ((int)(((byte)(5))))); this.bar1.Color = Color.FromRgb(((int)(((byte)(220)))), ((int)(((byte)(92)))), ((int)(((byte)(5))))); this.bar1.ColorEach = false; this.bar1.Marks.Arrow.Visible = false; this.bar1.Marks.ArrowLength = 8; this.bar1.Marks.Brush.Color = Color.FromRgb(((int)(((byte)(220)))), ((int)(((byte)(92)))), ((int)(((byte)(5))))); this.bar1.Marks.FollowSeriesColor = true; this.bar1.Marks.Font.Brush.Color = Color.White; this.bar1.Marks.Font.Name = "Segoe UI"; this.bar1.Marks.Pen.Color = Color.FromRgb(((int)(((byte)(220)))), ((int)(((byte)(92)))), ((int)(((byte)(5))))); this.bar1.Marks.Pen.Visible = false; this.bar1.Marks.Shadow.Visible = false; this.bar1.Marks.Style = Steema.TeeChart.Styles.MarksStyles.LabelValue; this.bar1.OffsetPercent = -10; this.bar1.Pen.Color = Color.FromRgb(((int)(((byte)(132)))), ((int)(((byte)(55)))), ((int)(((byte)(3))))); this.bar1.Pen.Visible = false; this.bar1.Title = "Series0"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.bar1.YValues.DataMember = "Bar"; // // bar2 // this.bar2.BarRound = Steema.TeeChart.Styles.BarRounding.AtValue; this.bar2.BarStyle = Steema.TeeChart.Styles.BarStyles.RoundRectangle; this.bar2.RoundSize = 5; this.bar2.BarWidthPercent = 80; this.bar2.Brush.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(172)))), ((int)(((byte)(0))))); this.bar2.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(172)))), ((int)(((byte)(0))))); this.bar2.ColorEach = false; this.bar2.Marks.Arrow.Visible = false; this.bar2.Marks.ArrowLength = 8; this.bar2.Marks.Brush.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(172)))), ((int)(((byte)(0))))); this.bar2.Marks.FollowSeriesColor = true; this.bar2.Marks.Font.Brush.Color = Color.White; this.bar2.Marks.Font.Name = "Segoe UI"; this.bar2.Marks.Pen.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(172)))), ((int)(((byte)(0))))); this.bar2.Marks.Pen.Visible = false; this.bar2.Marks.Shadow.Visible = false; this.bar2.Marks.Style = Steema.TeeChart.Styles.MarksStyles.LabelValue; this.bar2.Marks.Symbol.Shadow.Visible = false; this.bar2.OffsetPercent = 10; this.bar2.Pen.Color = Color.FromRgb(((int)(((byte)(153)))), ((int)(((byte)(103)))), ((int)(((byte)(0))))); this.bar2.Pen.Visible = false; this.bar2.Title = "Series1"; this.bar2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.bar2.YValues.DataMember = "Bar"; // // seriesAnimation1 // this.seriesAnimation1.StartValue = 0D; // // chartPartAnimation1 // this.chartPartAnimation1.Axis = null; quadraticEase1.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseIn; this.chartPartAnimation1.EasingFunction = quadraticEase1; this.chartPartAnimation1.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseOut; this.chartPartAnimation1.Fade = Steema.TeeChart.Animations.TransformFade.In; this.chartPartAnimation1.RotateMax = 0F; this.chartPartAnimation1.RotateMin = 0F; this.chartPartAnimation1.Series = this.bar1; this.chartPartAnimation1.Speed = 10000; this.chartPartAnimation1.Target = Steema.TeeChart.ChartClickedPartStyle.Series; this.chartPartAnimation1.TranslateStyle = Steema.TeeChart.Animations.TransformTranslate.None; this.chartPartAnimation1.ZoomStyle = Steema.TeeChart.Animations.TransformZoom.None; tChart1.Panel.Gradient.Visible = false; //add series and data bar1.Title = "Apples"; bar1.Clear(); bar1.Add(5, "jan"); bar1.Add(2, "feb"); bar1.Add(1, "mar"); bar1.Add(4, "apr"); bar1.Add(10, "may"); bar1.Add(11, "jun"); bar1.Add(15, "jul"); bar2.Title = "Pears"; bar2.Clear(); bar2.Add(7); bar2.Add(5); bar2.Add(1); bar2.Add(6); bar2.Add(2); bar2.Add(11); bar2.Add(5); tChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Text; tChart1.Axes.Left.Increment = 3; tChart1.Axes.Left.SetMinMax(0, 15); chartPartAnimation1.Play(); chartView = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 50, HeightRequest = 50 }; chartView.Model = tChart1; Content = new StackLayout { Children = { chartView } }; }
public MultiDonuts() { Steema.TeeChart.Animations.EasingFunctions.BounceEase bounceEase1 = new Steema.TeeChart.Animations.EasingFunctions.BounceEase(); Steema.TeeChart.Animations.EasingFunctions.CircleEase circleEase1 = new Steema.TeeChart.Animations.EasingFunctions.CircleEase(); this.tChart4 = new Steema.TeeChart.Chart(); this.donut4 = new Steema.TeeChart.Styles.Donut(); this.tChart3 = new Steema.TeeChart.Chart(); this.donut3 = new Steema.TeeChart.Styles.Donut(); this.tChart2 = new Steema.TeeChart.Chart(); this.donut2 = new Steema.TeeChart.Styles.Donut(); this.tChart1 = new Steema.TeeChart.Chart(); this.donut1 = new Steema.TeeChart.Styles.Donut(); this.label1 = new Label(); this.label2 = new Label(); this.tChart5 = new Steema.TeeChart.Chart(); this.horizBar1 = new Steema.TeeChart.Styles.HorizBar(); this.chartPartAnimation1 = new Steema.TeeChart.Animations.ChartPartAnimation(); this.chartPartAnimation2 = new Steema.TeeChart.Animations.ChartPartAnimation(); // tChart4 this.tChart4.Aspect.ColorPaletteIndex = 14; this.tChart4.Aspect.Elevation = 315; this.tChart4.Aspect.Orthogonal = false; this.tChart4.Aspect.Perspective = 0; this.tChart4.Aspect.Rotation = 360; this.tChart4.Aspect.View3D = false; this.tChart4.Footer.Font.Bold = true; this.tChart4.Footer.Font.Brush.Color = Color.Gray; this.tChart4.Footer.Lines = new string[] { "WHILE SHOPPING" }; this.tChart4.Footer.Visible = true; this.tChart4.Header.Visible = false; this.tChart4.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart4.Legend.Font.Bold = true; this.tChart4.Legend.Font.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.tChart4.Legend.Font.Name = "Segoe UI"; this.tChart4.Legend.Font.Size = 24; this.tChart4.Legend.FontSeriesColor = true; this.tChart4.Legend.LegendStyle = Steema.TeeChart.LegendStyles.LastValues; this.tChart4.Legend.Symbol.Visible = false; this.tChart4.Legend.TopLeftPos = 5; this.tChart4.Legend.Transparent = true; this.tChart4.Legend.VertSpacing = -10; this.tChart4.Panel.Brush.Color = Color.White; this.tChart4.Panel.Brush.Gradient.EndColor = Color.White; this.tChart4.Panel.Brush.Gradient.Visible = false; this.tChart4.Panel.Brush.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart4.Panel.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart4.Panel.MarginBottom = 2D; this.tChart4.Series.Add(this.donut4); this.tChart4.SubFooter.Font.Brush.Color = Color.Gray; this.tChart4.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut4 this.donut4.AutoPenColor = false; this.donut4.Brush.Color = Color.FromRgb(((int)(((byte)(242)))), ((int)(((byte)(192)))), ((int)(((byte)(93))))); this.donut4.Circled = true; this.donut4.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.donut4.DonutPercent = 60; this.donut4.Frame.Circled = true; this.donut4.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut4.Frame.OuterBand.Gradient.UseMiddle = false; this.donut4.Frame.Width = 4; this.donut4.LabelMember = "Labels"; this.donut4.Marks.Visible = false; this.donut4.MarksPie.LegSize = 0; this.donut4.MarksPie.VertCenter = false; this.donut4.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut4.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut4.OtherSlice.Text = ""; this.donut4.OtherSlice.Value = 0D; this.donut4.Pen.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.donut4.Pen.Width = 3; this.donut4.RotationAngle = 91; this.donut4.Title = "donut1"; this.donut4.UniqueCustomRadius = true; this.donut4.XValues.DataMember = "Angle"; this.donut4.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut4.YValues.DataMember = "Pie"; // tChart3 this.tChart3.Aspect.ColorPaletteIndex = 14; this.tChart3.Aspect.Elevation = 315; this.tChart3.Aspect.Orthogonal = false; this.tChart3.Aspect.Perspective = 0; this.tChart3.Aspect.Rotation = 360; this.tChart3.Aspect.RotationFloat = 360D; this.tChart3.Aspect.View3D = false; this.tChart3.Footer.Font.Bold = true; this.tChart3.Footer.Font.Brush.Color = Color.Gray; this.tChart3.Footer.Lines = new string[] { "WHILE HAVING DINNER" }; this.tChart3.Footer.Visible = true; this.tChart3.Header.Visible = false; this.tChart3.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart3.Legend.Font.Bold = true; this.tChart3.Legend.Font.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.tChart3.Legend.Font.Name = "Segoe UI"; this.tChart3.Legend.Font.Size = 24; this.tChart3.Legend.FontSeriesColor = true; this.tChart3.Legend.LegendStyle = Steema.TeeChart.LegendStyles.LastValues; this.tChart3.Legend.Symbol.Visible = false; this.tChart3.Legend.TopLeftPos = 5; this.tChart3.Legend.Transparent = true; this.tChart3.Legend.VertSpacing = -10; this.tChart3.Panel.Brush.Color = Color.White; this.tChart3.Panel.Brush.Gradient.EndColor = Color.White; this.tChart3.Panel.Brush.Gradient.Visible = false; this.tChart3.Panel.Brush.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart3.Panel.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart3.Panel.MarginBottom = 2D; this.tChart3.Series.Add(this.donut3); this.tChart3.SubFooter.Font.Brush.Color = Color.Gray; this.tChart3.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut3 this.donut3.AutoPenColor = false; this.donut3.Brush.Color = Color.FromRgb(((int)(((byte)(242)))), ((int)(((byte)(192)))), ((int)(((byte)(93))))); this.donut3.Circled = true; this.donut3.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.donut3.DonutPercent = 60; this.donut3.Frame.Circled = true; this.donut3.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut3.Frame.OuterBand.Gradient.UseMiddle = false; this.donut3.Frame.Width = 4; this.donut3.LabelMember = "Labels"; this.donut3.Marks.Visible = false; this.donut3.MarksPie.LegSize = 0; this.donut3.MarksPie.VertCenter = false; this.donut3.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut3.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut3.OtherSlice.Text = ""; this.donut3.OtherSlice.Value = 0D; this.donut3.Pen.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.donut3.Pen.Width = 3; this.donut3.RotationAngle = 91; this.donut3.Title = "donut1"; this.donut3.UniqueCustomRadius = true; this.donut3.XValues.DataMember = "Angle"; this.donut3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut3.YValues.DataMember = "Pie"; // tChart2 this.tChart2.Aspect.ColorPaletteIndex = 14; this.tChart2.Aspect.Elevation = 315; this.tChart2.Aspect.Orthogonal = false; this.tChart2.Aspect.Perspective = 0; this.tChart2.Aspect.Rotation = 360; this.tChart2.Aspect.RotationFloat = 360D; this.tChart2.Aspect.View3D = false; this.tChart2.Footer.Font.Bold = true; this.tChart2.Footer.Font.Brush.Color = Color.Gray; this.tChart2.Footer.Lines = new string[] { "WHILE COMMUTING" }; this.tChart2.Footer.Visible = true; this.tChart2.Header.Visible = false; this.tChart2.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart2.Legend.Font.Bold = true; this.tChart2.Legend.Font.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.tChart2.Legend.Font.Name = "Segoe UI"; this.tChart2.Legend.Font.Size = 24; this.tChart2.Legend.FontSeriesColor = true; this.tChart2.Legend.LegendStyle = Steema.TeeChart.LegendStyles.LastValues; this.tChart2.Legend.Symbol.Visible = false; this.tChart2.Legend.TopLeftPos = 5; this.tChart2.Legend.Transparent = true; this.tChart2.Legend.VertSpacing = -10; this.tChart2.Panel.Brush.Color = Color.White; this.tChart2.Panel.Brush.Gradient.EndColor = Color.White; this.tChart2.Panel.Brush.Gradient.Visible = false; this.tChart2.Panel.Brush.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart2.Panel.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart2.Panel.MarginBottom = 2D; this.tChart2.Series.Add(this.donut2); this.tChart2.SubFooter.Font.Brush.Color = Color.Gray; this.tChart2.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut2 this.donut2.AutoPenColor = false; this.donut2.Brush.Color = Color.FromRgb(((int)(((byte)(242)))), ((int)(((byte)(192)))), ((int)(((byte)(93))))); this.donut2.Circled = true; this.donut2.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.donut2.DonutPercent = 60; this.donut2.Frame.Circled = true; this.donut2.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut2.Frame.OuterBand.Gradient.UseMiddle = false; this.donut2.Frame.Width = 4; this.donut2.LabelMember = "Labels"; this.donut2.Marks.Visible = false; this.donut2.MarksPie.LegSize = 0; this.donut2.MarksPie.VertCenter = false; this.donut2.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut2.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut2.OtherSlice.Text = ""; this.donut2.OtherSlice.Value = 0D; this.donut2.Pen.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.donut2.Pen.Width = 3; this.donut2.RotationAngle = 91; this.donut2.Title = "donut1"; this.donut2.UniqueCustomRadius = true; this.donut2.XValues.DataMember = "Angle"; this.donut2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut2.YValues.DataMember = "Pie"; // tChart1 this.tChart1.Animations.Add(this.chartPartAnimation2); this.tChart1.Aspect.ColorPaletteIndex = 21; this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.RotationFloat = 360D; this.tChart1.Aspect.View3D = false; this.tChart1.Footer.Font.Bold = true; this.tChart1.Footer.Font.Brush.Color = Color.Gray; this.tChart1.Footer.Lines = new string[] { "LATE AT NIGHT IN BED" }; this.tChart1.Footer.Visible = true; this.tChart1.Header.Visible = false; this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart1.Legend.Font.Bold = true; this.tChart1.Legend.Font.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.tChart1.Legend.Font.Name = "Segoe UI"; this.tChart1.Legend.Font.Size = 24; this.tChart1.Legend.FontSeriesColor = true; this.tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.LastValues; this.tChart1.Legend.Symbol.Visible = false; this.tChart1.Legend.TopLeftPos = 5; this.tChart1.Legend.Transparent = true; this.tChart1.Legend.VertSpacing = -10; this.tChart1.Panel.Brush.Color = Color.White; this.tChart1.Panel.Brush.Gradient.EndColor = Color.White; this.tChart1.Panel.Brush.Gradient.Visible = false; this.tChart1.Panel.Brush.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart1.Panel.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center; this.tChart1.Panel.MarginBottom = 2D; this.tChart1.Series.Add(this.donut1); this.tChart1.SubFooter.Font.Brush.Color = Color.Gray; this.tChart1.Walls.Back.Brush.Gradient.EndColor = Color.White; // donut1 this.donut1.AutoPenColor = false; this.donut1.Brush.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(172)))), ((int)(((byte)(0))))); this.donut1.Circled = true; this.donut1.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.donut1.DonutPercent = 60; this.donut1.Frame.Circled = true; this.donut1.Frame.FrameElementPercents = new double[] { 25D, 60D, 15D }; this.donut1.Frame.OuterBand.Gradient.UseMiddle = false; this.donut1.Frame.Width = 4; this.donut1.LabelMember = "Labels"; this.donut1.Marks.Visible = false; this.donut1.MarksPie.LegSize = 0; this.donut1.MarksPie.VertCenter = false; this.donut1.MultiPie = Steema.TeeChart.Styles.MultiPies.Automatic; this.donut1.OtherSlice.Style = Steema.TeeChart.Styles.PieOtherStyles.None; this.donut1.OtherSlice.Text = ""; this.donut1.OtherSlice.Value = 0D; this.donut1.Pen.Color = Color.FromRgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.donut1.Pen.Width = 3; this.donut1.RotationAngle = 91; this.donut1.Title = "donut1"; this.donut1.UniqueCustomRadius = true; this.donut1.XValues.DataMember = "Angle"; this.donut1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; this.donut1.YValues.DataMember = "Pie"; // label1 this.label1.Text = "Ericson consumerLab. 2014"; // label2 this.label2.Text = "Where do customers watch mobile video content ?"; // tChart5 this.tChart5.Animations.Add(this.chartPartAnimation1); this.tChart5.Aspect.ColorPaletteIndex = 14; this.tChart5.Aspect.View3D = false; this.tChart5.Axes.Bottom.AxisPen.Visible = false; this.tChart5.Axes.Bottom.Grid.Visible = false; this.tChart5.Axes.Bottom.MinorTicks.Visible = false; this.tChart5.Axes.Bottom.Visible = false; this.tChart5.Axes.Left.AxisPen.Color = Color.Gray; this.tChart5.Axes.Left.AxisPen.Width = 1; this.tChart5.Axes.Left.Grid.Visible = false; this.tChart5.Axes.Left.Labels.Font.Brush.Color = Color.Gray; this.tChart5.Axes.Left.Labels.Font.Name = "Segoe UI"; this.tChart5.Axes.Left.Labels.Font.Size = 16; this.tChart5.Axes.Left.MinorTicks.Visible = false; this.tChart5.Footer.Font.Brush.Color = Color.Blue; this.tChart5.Header.Visible = false; this.tChart5.Legend.Visible = false; this.tChart5.Panel.Brush.Color = Color.White; this.tChart5.Panel.Brush.Gradient.EndColor = Color.White; this.tChart5.Series.Add(this.horizBar1); this.tChart5.Walls.Back.Brush.Gradient.EndColor = Color.White; this.tChart5.Walls.Back.Visible = false; // horizBar1 this.horizBar1.BarHeightPercent = 90; this.horizBar1.BarRound = Steema.TeeChart.Styles.BarRounding.AtValue; this.horizBar1.BarStyle = Steema.TeeChart.Styles.BarStyles.RoundRectangle; this.horizBar1.Brush.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.horizBar1.Color = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(234)))), ((int)(((byte)(141))))); this.horizBar1.ColorEach = false; this.horizBar1.Marks.Brush.Visible = false; this.horizBar1.Marks.Font.Brush.Color = Color.Gray; this.horizBar1.Marks.Style = Steema.TeeChart.Styles.MarksStyles.Value; this.horizBar1.Marks.Transparent = true; this.horizBar1.Pen.Color = Color.FromRgb(((int)(((byte)(146)))), ((int)(((byte)(140)))), ((int)(((byte)(85))))); this.horizBar1.Pen.Visible = false; this.horizBar1.Title = "horizBar1"; this.horizBar1.ValueFormat = "## %"; this.horizBar1.XValues.DataMember = "X"; this.horizBar1.YValues.DataMember = "Bar"; this.horizBar1.YValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // chartPartAnimation1 this.chartPartAnimation1.Axis = null; bounceEase1.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseOut; this.chartPartAnimation1.EasingFunction = bounceEase1; this.chartPartAnimation1.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseOut; this.chartPartAnimation1.Fade = Steema.TeeChart.Animations.TransformFade.None; this.chartPartAnimation1.RotateMax = 0F; this.chartPartAnimation1.RotateMin = 0F; this.chartPartAnimation1.Series = null; this.chartPartAnimation1.Speed = 1000; this.chartPartAnimation1.Target = Steema.TeeChart.ChartClickedPartStyle.Series; this.chartPartAnimation1.ZoomStyle = Steema.TeeChart.Animations.TransformZoom.None; // chartPartAnimation2 this.chartPartAnimation2.Axis = null; circleEase1.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseIn; this.chartPartAnimation2.EasingFunction = circleEase1; this.chartPartAnimation2.EasingMode = Steema.TeeChart.Animations.EasingFunctions.EasingMode.EaseIn; this.chartPartAnimation2.Fade = Steema.TeeChart.Animations.TransformFade.In; this.chartPartAnimation2.RotateMax = 360F; this.chartPartAnimation2.RotateMin = 0F; this.chartPartAnimation2.Series = null; this.chartPartAnimation2.Speed = 1000; this.chartPartAnimation2.Target = Steema.TeeChart.ChartClickedPartStyle.Series; this.chartPartAnimation2.TranslateStyle = Steema.TeeChart.Animations.TransformTranslate.None; this.chartPartAnimation2.ZoomStyle = Steema.TeeChart.Animations.TransformZoom.None; tChart1.Panel.Gradient.Visible = false; tChart2.Panel.Gradient.Visible = false; tChart3.Panel.Gradient.Visible = false; tChart4.Panel.Gradient.Visible = false; tChart5.Panel.Gradient.Visible = false; this.tChart1.Aspect.ZoomText = true; this.tChart2.Aspect.ZoomText = true; this.tChart3.Aspect.ZoomText = true; this.tChart4.Aspect.ZoomText = true; this.tChart5.Aspect.ZoomText = true; initChart(); chartView1 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView1.Model = tChart1; chartView2 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView2.Model = tChart2; chartView3 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView3.Model = tChart3; chartView4 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView4.Model = tChart4; chartView5 = new ChartView { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, WidthRequest = 25, HeightRequest = 25 }; chartView5.Model = tChart5; Grid grid = new Grid { VerticalOptions = LayoutOptions.FillAndExpand, Padding = 5, RowDefinitions = { new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }, new RowDefinition { Height = new GridLength(1, GridUnitType.Star) } }, ColumnDefinitions = { new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }, new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }, new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }, new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) } } }; grid.Children.Add(chartView1, 0, 0); grid.Children.Add(chartView2, 1, 0); grid.Children.Add(chartView3, 2, 0); grid.Children.Add(chartView4, 3, 0); grid.Children.Add(chartView5, 0, 4, 1, 2); // Build the page. this.Content = grid; }