コード例 #1
0
        public MainPage()
        {
            InitializeComponent();

            PieChart = new ChartView();
            pie      = new Steema.TeeChart.Styles.Pie();
            PieChart.Chart.ClickSeries += Chart_ClickSeries;
            PieChart.Chart.Series.Add(pie);

            PieChart.Chart.Panning.Allow = ScrollModes.None;

            PieChart.Chart.Panel.Gradient.Visible = false;
            PieChart.Chart.Panel.Color            = Color.White;
            PieChart.Chart.Walls.Back.Visible     = false;
            PieChart.Chart.Header.Visible         = false;

            PieChart.Chart.Legend.Visible = false;
            PieChart.Chart.Aspect.View3D  = false;

            PieChart.WidthRequest  = 650;
            PieChart.HeightRequest = 350;

            PieChart.Chart.Panel.Brush.Solid = true;

            pie.Circled       = true;
            pie.AutoPenColor  = false;
            pie.Pen.Color     = Color.White;
            pie.Pen.Width     = 15;
            pie.Marks.Visible = false;

            pie.FillSampleValues(3);

            PieChart.Chart.Tools.Add(ann);
            ann.Active          = false;
            ann.Shape.Font.Size = 25;
            ann.Shape.TextAlign = TextAlignment.Center;
            ann.TextAlign       = TextAlignment.Center;
            ann.Shape.Pen.Color = ann.Shape.Color;
            ann.AutoSize        = false;
            if (Device.OS == TargetPlatform.iOS)
            {
                ann.Shape.Width  = 80;
                ann.Shape.Height = 40;
            }
            else
            {
                ann.Shape.Width  = 200;
                ann.Shape.Height = 100;
            }

            Content = new StackLayout
            {
                Children =
                {
                    PieChart
                },
                VerticalOptions   = LayoutOptions.CenterAndExpand,
                HorizontalOptions = LayoutOptions.CenterAndExpand,
            };
        }
コード例 #2
0
        void InitializeChart()
        {
            tChart1 = new Steema.TeeChart.TChart(ApplicationContext);

            tChart1.Aspect.View3D      = false;
            tChart1.Zoom.Style         = Steema.TeeChart.ZoomStyles.InChart;
            tChart1.Legend.Visible     = false;
            tChart1.Header.Text        = "Chart created using Xamarin.Android";
            tChart1.Header.Font.Size   = 24;
            tChart1.Header.Font.Color  = System.Drawing.Color.Black;
            tChart1.ContentDescription = "Pie2D";

            var pie1 = new Steema.TeeChart.Styles.Pie(tChart1.Chart);

            pie1.FillSampleValues(4);
            pie1.Circled             = true;
            pie1.Marks.Transparent   = true;
            pie1.Marks.Arrow.Visible = false;
            pie1.Marks.Font.Size     = 24;
            pie1.Pen.Width           = 8;
            pie1.Pen.Color           = System.Drawing.Color.FromArgb(60, 60, 60);
            pie1.Pen.EndCap          = Android.Graphics.Paint.Cap.Round;
            pie1.ExplodeBiggest      = 15;

            pie1.ColorEach = false;
            for (int i = 0; i < pie1.Count; i++)
            {
                pie1.Colors[i] = Steema.TeeChart.Themes.Theme.OnBlackPalette [i];
            }

            SetContentView(tChart1);
        }
コード例 #3
0
        public PanelImageBevel()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            pie1.FillSampleValues();
        }
        public Marks_PerPoint()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            pie1.FillSampleValues();

            // customize mark...
            pie1.Marks.Items[3].Font.Size = 14;
            pie1.Marks.Items[3].Color     = Color.Silver;

            // customize another mark...
            pie1.Marks.Items[5].Font.Size           = 12;
            pie1.Marks.Items[5].Font.Color          = Color.White;
            pie1.Marks.Items[5].Color               = Color.Navy;
            pie1.Marks.Items[5].ShapeStyle          = Drawing.TextShapeStyle.RoundRectangle;
            pie1.Marks.Items[5].Shadow.Width        = 4;
            pie1.Marks.Items[5].Shadow.Height       = 4;
            pie1.Marks.Items[5].Shadow.Transparency = 60;
            pie1.Marks.Items[5].Shadow.Color        = Color.DarkGray;

            numericUpDown1.Maximum = pie1.Count - 1;

            label1.Text = pie1.Labels[Convert.ToInt16(numericUpDown1.Value)];
        }
コード例 #5
0
        public Canvas_AntiAlias()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();
            pie1.FillSampleValues(8);

            Bitmap b = tChart1.Bitmap;
        }
コード例 #6
0
        public Pie_AutoMarkPosition()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            pie1.Marks.ArrowLength = 20;
            pie1.FillSampleValues(16);
        }
        public SeriesType_Pie()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            pie1.Shadow.Width  = 40;
            pie1.Shadow.Height = 40;
            pie1.FillSampleValues(6);
        }
コード例 #8
0
        public PieShadowEllipse()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            pie1.FillSampleValues();
            pie1.Circled           = false;
            tChart1.Legend.Visible = false;
            buttonColor1.Color     = tChart1.Panel.Color;
        }
コード例 #9
0
        public Tool_Pie()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            pieSeries1.FillSampleValues(6);
            tChart1.Legend.Visible = false;

            // link pen button with tool pen
            buttonPen1.Pen = pieTool1.Pen;
        }
コード例 #10
0
        public Legend_CustomPos()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            pieSeries1.FillSampleValues(5);
            tChart1.Legend.CustomPosition = true;
            tChart1.Legend.Left           = 0;
            tChart1.Legend.Top            = 0;

            trackBar1.Value = tChart1.Legend.Left;
            trackBar2.Value = tChart1.Legend.Top;
        }
コード例 #11
0
        public Pie_Shadow()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            pieSeries1.FillSampleValues(5);

            // Setup shadow
            pieSeries1.Shadow.Color   = Color.Silver;
            pieSeries1.Shadow.Height  = 30;
            pieSeries1.Shadow.Width   = 50;
            pieSeries1.Shadow.Visible = true;
        }
        private void InitializeChart()
        {
            tChart1.Series.Add(pie = new Steema.TeeChart.Styles.Pie());
            pie.FillSampleValues();

            tChart1.Legend.TextStyle       = LegendTextStyles.Value;
            tChart1.Legend.ColumnWidthAuto = false;
            tChart1.Legend.ColumnWidths[0] = 100;

            // Force re-draw to make tChart1 recalculate all Legend Items[]
            tChart1.Draw();

            numericUpDown1.Maximum = pie.Count - 1;
            numericUpDown1_Click(this, EventArgs.Empty);
        }
コード例 #13
0
        private void InitializeChart()
        {
            tChart1.DoubleClick    += new EventHandler(tChart1_DoubleClick);
            tChart1.Series.Add(pie1 = new Steema.TeeChart.Styles.Pie());
            pie1.FillSampleValues();
            pie1.Pen.Visible           = false;
            pie1.BevelPercent          = 15;
            pie1.ExplodeBiggest        = 10;
            pie1.EdgeStyle             = Steema.TeeChart.Drawing.EdgeStyles.Curved;
            pie1.Marks.Transparent     = true;
            pie1.Marks.ArrowLength     = 15;
            pie1.Marks.FontSeriesColor = true;
            cbEdgeStyles.Items.Add(Steema.TeeChart.Drawing.EdgeStyles.Curved);
            cbEdgeStyles.Items.Add(Steema.TeeChart.Drawing.EdgeStyles.Flat);
            cbEdgeStyles.Items.Add(Steema.TeeChart.Drawing.EdgeStyles.None);

            cbEdgeStyles.SelectedIndex = 0;
            numericUpDown1.Value       = 15;
            upTransparency.Value       = 0;
        }
コード例 #14
0
        public WelcomeForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            // constants to rotate...
            // fill the series
            pieSeries1.FillSampleValues(7);

            //Color set with transparency
            pieSeries1.Colors[0] = Color.FromArgb(120, 224, 77, 44);
            pieSeries1.Colors[1] = Color.FromArgb(120, 244, 158, 54);
            pieSeries1.Colors[2] = Color.FromArgb(120, 251, 197, 65);
            pieSeries1.Colors[3] = Color.FromArgb(120, 254, 236, 58);
            pieSeries1.Colors[4] = Color.FromArgb(120, 154, 183, 194);
            pieSeries1.Colors[5] = Color.FromArgb(120, 50, 99, 125);
            pieSeries1.Colors[6] = Color.FromArgb(120, 28, 63, 95);
            pieSeries1.Colors[7] = Color.FromArgb(120, 170, 155, 51);

            lineSeries1.FillSampleValues(30);
            lineSeries2.FillSampleValues(30);
            fastLineSeries1.FillSampleValues(50);
            Delta                         = 1;
            DeltaElev                     = 1;
            DeltaRot                      = 1;
            TheSeries                     = pieSeries1;
            tChart1.Aspect.Zoom           = 1;
            tChart1.Aspect.Orthogonal     = false;
            tChart1.Aspect.Elevation      = 315;
            tChart1.Aspect.Rotation       = 360;
            tChart1.Aspect.Perspective    = 0;
            tChart1.Aspect.Chart3DPercent = 40;

            r = new Random();
        }
コード例 #15
0
 void tChart1_DoubleClick(object sender, EventArgs e)
 {
     pie1.FillSampleValues();
 }
コード例 #16
0
        public MultiPies()
        {
            this.tChart6 = new Steema.TeeChart.Chart();
            this.bar3    = new Steema.TeeChart.Styles.Bar();
            this.tChart5 = new Steema.TeeChart.Chart();
            this.bar2    = new Steema.TeeChart.Styles.Bar();
            this.tChart4 = new Steema.TeeChart.Chart();
            this.tChart3 = new Steema.TeeChart.Chart();
            this.pie3    = new Steema.TeeChart.Styles.Pie();
            this.tChart2 = new Steema.TeeChart.Chart();
            this.pie2    = new Steema.TeeChart.Styles.Pie();
            this.tChart1 = new Steema.TeeChart.Chart();
            this.pie1    = new Steema.TeeChart.Styles.Pie();
            this.tChart7 = new Steema.TeeChart.Chart();
            this.bar4    = new Steema.TeeChart.Styles.Bar();
            this.bar5    = new Steema.TeeChart.Styles.Bar();
            this.label1  = new Label();
            this.bar1    = new Steema.TeeChart.Styles.Bar();
            // tChart6
            this.tChart6.Aspect.Elevation                  = 315;
            this.tChart6.Aspect.ElevationFloat             = 315D;
            this.tChart6.Aspect.Orthogonal                 = false;
            this.tChart6.Aspect.Perspective                = 0;
            this.tChart6.Aspect.Rotation                   = 360;
            this.tChart6.Aspect.RotationFloat              = 360D;
            this.tChart6.Aspect.View3D                     = false;
            this.tChart6.Axes.Bottom.Visible               = false;
            this.tChart6.Axes.Left.AxisPen.Color           = Color.FromRgb(((int)(((byte)(192)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.tChart6.Axes.Left.AxisPen.Width           = 1;
            this.tChart6.Axes.Left.Grid.Visible            = false;
            this.tChart6.Axes.Left.Increment               = 20D;
            this.tChart6.Axes.Left.Labels.Font.Brush.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(127)))), ((int)(((byte)(127)))));
            this.tChart6.Axes.Left.MinorTicks.Visible      = false;
            this.tChart6.Footer.Font.Brush.Color           = Color.Gray;
            this.tChart6.Header.Font.Brush.Color           = Color.Gray;
            this.tChart6.Header.Lines                  = new string[] { "Evening Class" };
            this.tChart6.Header.Visible                = false;
            this.tChart6.Legend.Visible                = false;
            this.tChart6.Panel.Brush.Color             = Color.White;
            this.tChart6.Panel.Brush.Gradient.EndColor = Color.White;
            this.tChart6.Panel.MarginBottom            = 6D;
            this.tChart6.Series.Add(this.bar3);
            this.tChart6.Walls.Back.Brush.Gradient.EndColor = Color.White;
            this.tChart6.Walls.Visible = false;
            // bar3
            this.bar3.BarRound             = Steema.TeeChart.Styles.BarRounding.AtValue;
            this.bar3.Brush.Color          = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.bar3.Color                = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.bar3.ColorEach            = true;
            this.bar3.Marks.Arrow.Visible  = false;
            this.bar3.Marks.ArrowLength    = -24;
            this.bar3.Marks.Pen.Visible    = false;
            this.bar3.Marks.Shadow.Visible = false;
            this.bar3.Marks.Style          = Steema.TeeChart.Styles.MarksStyles.Value;
            this.bar3.Pen.Color            = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
            this.bar3.Title                = "bar1";
            this.bar3.XValues.DataMember   = "X";
            this.bar3.XValues.Order        = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            this.bar3.YValues.DataMember   = "Bar";
            // tChart5
            this.tChart5.Aspect.Elevation                  = 315;
            this.tChart5.Aspect.ElevationFloat             = 315D;
            this.tChart5.Aspect.Orthogonal                 = false;
            this.tChart5.Aspect.Perspective                = 0;
            this.tChart5.Aspect.Rotation                   = 360;
            this.tChart5.Aspect.RotationFloat              = 360D;
            this.tChart5.Aspect.View3D                     = false;
            this.tChart5.Axes.Bottom.Visible               = false;
            this.tChart5.Axes.Left.AxisPen.Color           = Color.FromRgb(((int)(((byte)(192)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.tChart5.Axes.Left.AxisPen.Width           = 1;
            this.tChart5.Axes.Left.Grid.Visible            = false;
            this.tChart5.Axes.Left.Increment               = 20D;
            this.tChart5.Axes.Left.Labels.Font.Brush.Color = Color.FromRgb(((int)(((byte)(128)))), ((int)(((byte)(127)))), ((int)(((byte)(127)))));
            this.tChart5.Axes.Left.MinorTicks.Visible      = false;
            this.tChart5.Footer.Font.Brush.Color           = Color.Gray;
            this.tChart5.Header.Font.Brush.Color           = Color.Gray;
            this.tChart5.Header.Lines                  = new string[] { "Afternoon Class" };
            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.Panel.MarginBottom            = 6D;
            this.tChart5.Series.Add(this.bar2);
            this.tChart5.Walls.Back.Brush.Gradient.EndColor = Color.White;
            this.tChart5.Walls.Visible = false;
            // bar2
            this.bar2.BarRound             = Steema.TeeChart.Styles.BarRounding.AtValue;
            this.bar2.Brush.Color          = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.bar2.Color                = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.bar2.ColorEach            = true;
            this.bar2.Marks.Arrow.Visible  = false;
            this.bar2.Marks.ArrowLength    = -24;
            this.bar2.Marks.Pen.Visible    = false;
            this.bar2.Marks.Shadow.Visible = false;
            this.bar2.Marks.Style          = Steema.TeeChart.Styles.MarksStyles.Value;
            this.bar2.Pen.Color            = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
            this.bar2.Title                = "bar1";
            this.bar2.XValues.DataMember   = "X";
            this.bar2.XValues.Order        = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            this.bar2.YValues.DataMember   = "Bar";
            // tChart4
            this.tChart4.Aspect.Elevation                  = 315;
            this.tChart4.Aspect.ElevationFloat             = 315D;
            this.tChart4.Aspect.Orthogonal                 = false;
            this.tChart4.Aspect.Perspective                = 0;
            this.tChart4.Aspect.Rotation                   = 360;
            this.tChart4.Aspect.RotationFloat              = 360D;
            this.tChart4.Aspect.View3D                     = false;
            this.tChart4.Axes.Bottom.Visible               = false;
            this.tChart4.Axes.Left.AxisPen.Width           = 1;
            this.tChart4.Axes.Left.Grid.Visible            = false;
            this.tChart4.Axes.Left.Increment               = 20D;
            this.tChart4.Axes.Left.Labels.Font.Brush.Color = Color.Gray;
            this.tChart4.Axes.Left.MinorTicks.Visible      = false;
            this.tChart4.Footer.Font.Brush.Color           = Color.Gray;
            this.tChart4.Header.Font.Brush.Color           = Color.Gray;
            this.tChart4.Header.Lines                  = new string[] { "Morning Class" };
            this.tChart4.Header.Visible                = false;
            this.tChart4.Legend.Visible                = false;
            this.tChart4.Panel.Brush.Color             = Color.White;
            this.tChart4.Panel.Brush.Gradient.EndColor = Color.White;
            this.tChart4.Panel.MarginBottom            = 6D;
            this.tChart4.Series.Add(this.bar1);
            this.tChart4.Walls.Back.Brush.Gradient.EndColor = Color.White;
            this.tChart4.Walls.Visible = false;
            // tChart3
            this.tChart3.Aspect.Elevation              = 315;
            this.tChart3.Aspect.ElevationFloat         = 315D;
            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.Brush.Color       = Color.Blue;
            this.tChart3.Header.Font.Brush.Color       = Color.Gray;
            this.tChart3.Header.Lines                  = new string[] { "Evening Class" };
            this.tChart3.Legend.Visible                = false;
            this.tChart3.Panel.Brush.Color             = Color.White;
            this.tChart3.Panel.Brush.Gradient.EndColor = Color.White;
            this.tChart3.Series.Add(this.pie3);
            this.tChart3.Walls.Back.Brush.Gradient.EndColor = Color.White;
            // pie3
            this.pie3.Brush.Color    = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
            this.pie3.Circled        = true;
            this.pie3.Color          = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.pie3.ExplodeBiggest = 5;
            this.pie3.ExplodedSlice.Add(0);
            this.pie3.ExplodedSlice.Add(5);
            this.pie3.Frame.Circled = true;
            this.pie3.Frame.FrameElementPercents = new double[] {
                25D,
                60D,
                15D
            };
            this.pie3.Frame.OuterBand.Gradient.UseMiddle = false;
            this.pie3.LabelMember         = "Labels";
            this.pie3.Marks.Visible       = false;
            this.pie3.MarksPie.LegSize    = 0;
            this.pie3.MarksPie.VertCenter = false;
            this.pie3.MultiPie            = Steema.TeeChart.Styles.MultiPies.Automatic;
            this.pie3.OtherSlice.Style    = Steema.TeeChart.Styles.PieOtherStyles.None;
            this.pie3.OtherSlice.Text     = "";
            this.pie3.OtherSlice.Value    = 0D;
            this.pie3.RotationAngle       = 91;
            pie3.FillSampleValues(2);
            this.pie3.Title = "pie1";
            this.pie3.UniqueCustomRadius = true;
            this.pie3.XValues.DataMember = "Angle";
            this.pie3.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            this.pie3.YValues.DataMember = "Pie";
            // tChart2
            this.tChart2.Aspect.Elevation              = 315;
            this.tChart2.Aspect.ElevationFloat         = 315D;
            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.Brush.Color       = Color.Blue;
            this.tChart2.Header.Font.Brush.Color       = Color.Gray;
            this.tChart2.Header.Lines                  = new string[] { "Afternoon Class" };
            this.tChart2.Legend.Visible                = false;
            this.tChart2.Panel.Brush.Color             = Color.White;
            this.tChart2.Panel.Brush.Gradient.EndColor = Color.White;
            this.tChart2.Series.Add(this.pie2);
            this.tChart2.Walls.Back.Brush.Gradient.EndColor = Color.White;
            // pie2
            this.pie2.Brush.Color    = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
            this.pie2.Circled        = true;
            this.pie2.Color          = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.pie2.ExplodeBiggest = 5;
            this.pie2.ExplodedSlice.Add(5);
            this.pie2.Frame.Circled = true;
            this.pie2.Frame.FrameElementPercents = new double[] {
                25D,
                60D,
                15D
            };
            this.pie2.Frame.OuterBand.Gradient.UseMiddle = false;
            this.pie2.LabelMember         = "Labels";
            this.pie2.Marks.Visible       = false;
            this.pie2.MarksPie.LegSize    = 0;
            this.pie2.MarksPie.VertCenter = false;
            this.pie2.MultiPie            = Steema.TeeChart.Styles.MultiPies.Automatic;
            this.pie2.OtherSlice.Style    = Steema.TeeChart.Styles.PieOtherStyles.None;
            this.pie2.OtherSlice.Text     = "";
            this.pie2.OtherSlice.Value    = 0D;
            this.pie2.RotationAngle       = 91;
            pie2.FillSampleValues(2);
            this.pie2.Title = "pie1";
            this.pie2.UniqueCustomRadius = true;
            this.pie2.XValues.DataMember = "Angle";
            this.pie2.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            this.pie2.YValues.DataMember = "Pie";
            // tChart1
            this.tChart1.Aspect.Elevation              = 315;
            this.tChart1.Aspect.ElevationFloat         = 315D;
            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.Brush.Color       = Color.Blue;
            this.tChart1.Header.Font.Brush.Color       = Color.Gray;
            this.tChart1.Header.Lines                  = new string[] { "Morning Class" };
            this.tChart1.Legend.Visible                = false;
            this.tChart1.Panel.Brush.Color             = Color.White;
            this.tChart1.Panel.Brush.Gradient.EndColor = Color.White;
            this.tChart1.Series.Add(this.pie1);
            this.tChart1.Walls.Back.Brush.Gradient.EndColor = Color.White;
            // pie1
            this.pie1.Brush.Color    = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
            this.pie1.Circled        = true;
            this.pie1.Color          = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.pie1.ExplodeBiggest = 5;
            this.pie1.ExplodedSlice.Add(5);
            this.pie1.Frame.Circled = true;
            this.pie1.Frame.FrameElementPercents = new double[] {
                25D,
                60D,
                15D
            };
            this.pie1.Frame.OuterBand.Gradient.UseMiddle = false;
            this.pie1.LabelMember         = "Labels";
            this.pie1.Marks.Visible       = false;
            this.pie1.MarksPie.LegSize    = 0;
            this.pie1.MarksPie.VertCenter = false;
            this.pie1.MultiPie            = Steema.TeeChart.Styles.MultiPies.Automatic;
            this.pie1.OtherSlice.Style    = Steema.TeeChart.Styles.PieOtherStyles.None;
            this.pie1.OtherSlice.Text     = "";
            this.pie1.OtherSlice.Value    = 0D;
            this.pie1.RotationAngle       = 91;
            pie1.FillSampleValues(2);
            this.pie1.Title = "pie1";
            this.pie1.UniqueCustomRadius = true;
            this.pie1.XValues.DataMember = "Angle";
            this.pie1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            this.pie1.YValues.DataMember = "Pie";
            // tChart7
            this.tChart7.Footer.Font.Brush.Color       = Color.Blue;
            this.tChart7.Header.Visible                = false;
            this.tChart7.Legend.Alignment              = Steema.TeeChart.LegendAlignments.Top;
            this.tChart7.Legend.Font.Brush.Color       = Color.Gray;
            this.tChart7.Legend.Font.Name              = "Segoe UI";
            this.tChart7.Legend.Font.Size              = 14;
            this.tChart7.Legend.Pen.Visible            = false;
            this.tChart7.Legend.Transparent            = true;
            this.tChart7.Panel.Bevel.Outer             = Steema.TeeChart.Drawing.BevelStyles.None;
            this.tChart7.Panel.Brush.Color             = Color.White;
            this.tChart7.Panel.Brush.Gradient.EndColor = Color.White;
            this.tChart7.Panel.MarginBottom            = 0D;
            this.tChart7.Panel.MarginTop               = 6D;
            this.tChart7.Series.Add(this.bar4);
            this.tChart7.Series.Add(this.bar5);
            this.tChart7.Walls.Back.Brush.Gradient.EndColor = Color.White;
            // bar4
            this.bar4.BarRound           = Steema.TeeChart.Styles.BarRounding.AtValue;
            this.bar4.Brush.Color        = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.bar4.Color              = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.bar4.ColorEach          = false;
            this.bar4.Marks.Visible      = false;
            this.bar4.Pen.Color          = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
            this.bar4.Pen.Visible        = false;
            this.bar4.Title              = "Women";
            this.bar4.XValues.DataMember = "X";
            this.bar4.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            this.bar4.YValues.DataMember = "Bar";
            // bar5
            this.bar5.BarRound           = Steema.TeeChart.Styles.BarRounding.AtValue;
            this.bar5.Brush.Color        = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
            this.bar5.Color              = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
            this.bar5.ColorEach          = false;
            this.bar5.Marks.Visible      = false;
            this.bar5.Pen.Color          = Color.FromRgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32)))));
            this.bar5.Pen.Visible        = false;
            this.bar5.Title              = "Men";
            this.bar5.XValues.DataMember = "X";
            this.bar5.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            this.bar5.YValues.DataMember = "Bar";
            // label1
            this.label1.Text = "Women are more likely to attend the day classes while men are more commonly found" +
                               " in the evening class";
            // bar1
            this.bar1.BarRound             = Steema.TeeChart.Styles.BarRounding.AtValue;
            this.bar1.Brush.Color          = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.bar1.Color                = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.bar1.ColorEach            = true;
            this.bar1.Marks.Arrow.Visible  = false;
            this.bar1.Marks.ArrowLength    = -24;
            this.bar1.Marks.Pen.Visible    = false;
            this.bar1.Marks.Shadow.Visible = false;
            this.bar1.Marks.Style          = Steema.TeeChart.Styles.MarksStyles.Value;
            this.bar1.Pen.Color            = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
            this.bar1.Title                = "bar1";
            this.bar1.XValues.DataMember   = "X";
            this.bar1.XValues.Order        = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            this.bar1.YValues.DataMember   = "Bar";

            bar1.Add(pie1.YValues[0]);
            bar1.Add(pie1.YValues[1]);
            bar2.Add(pie2.YValues[0]);
            bar2.Add(pie2.YValues[1]);
            bar3.Add(pie3.YValues[0]);
            bar3.Add(pie3.YValues[1]);

            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;
            tChart6.Panel.Gradient.Visible = false;
            tChart7.Panel.Gradient.Visible = false;

            tChart4[0].Marks.FontSeriesColor = true;
            tChart5[0].Marks.FontSeriesColor = true;
            tChart6[0].Marks.FontSeriesColor = true;

            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;

            chartView6 = new ChartView
            {
                VerticalOptions   = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                WidthRequest      = 25,
                HeightRequest     = 25
            };
            chartView6.Model = tChart6;

            chartView7 = new ChartView
            {
                VerticalOptions   = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                WidthRequest      = 25,
                HeightRequest     = 25
            };
            chartView7.Model = tChart7;


            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)
                    }
                }
            };

            //grid.Children.Add(chartView7, 0, 3, 0, 1);
            grid.Children.Add(chartView1, 0, 0);
            grid.Children.Add(chartView2, 1, 0);
            grid.Children.Add(chartView3, 2, 0);
            grid.Children.Add(chartView4, 0, 1);
            grid.Children.Add(chartView5, 1, 1);
            grid.Children.Add(chartView6, 2, 1);

            // Build the page.
            this.Content = grid;
        }