Exemplo n.º 1
0
        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
                }
            };
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Tools_SeriesAnim));
     this.button1          = new System.Windows.Forms.Button();
     this.hScrollBar1      = new System.Windows.Forms.HScrollBar();
     this.label1           = new System.Windows.Forms.Label();
     this.labelSteps       = new System.Windows.Forms.Label();
     this.barSeries1       = new Steema.TeeChart.Styles.Bar();
     this.seriesAnimation1 = new Steema.TeeChart.Tools.SeriesAnimation();
     this.checkBox1        = new System.Windows.Forms.CheckBox();
     this.button2          = new System.Windows.Forms.Button();
     this.panel1.SuspendLayout();
     this.chartContainer.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Size     = new System.Drawing.Size(488, 63);
     this.textBox1.TabIndex = 0;
     this.textBox1.Text     = "The series animation tool displays an animated growing chart.\r\n\r\nExample: seriesA" +
                              "nimation1.Execute(); ";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.button2);
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Controls.Add(this.labelSteps);
     this.panel1.Controls.Add(this.hScrollBar1);
     this.panel1.Controls.Add(this.button1);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Location = new System.Drawing.Point(0, 63);
     this.panel1.Size     = new System.Drawing.Size(488, 41);
     this.panel1.TabIndex = 1;
     //
     // tChart1
     //
     //
     //
     //
     this.tChart1.Aspect.ZOffset = 0;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.MaximumOffset = 34;
     this.tChart1.Axes.Bottom.MinimumOffset = 34;
     //
     //
     //
     this.tChart1.Axes.Left.MaximumOffset = 37;
     //
     //
     //
     this.tChart1.Header.Lines = new string[] {
         "tChart1"
     };
     this.tChart1.Header.Visible = false;
     //
     //
     //
     //
     //
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Panel.Brush.Gradient.Direction  = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal;
     this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
     this.tChart1.Series.Add(this.barSeries1);
     this.tChart1.Size     = new System.Drawing.Size(488, 269);
     this.tChart1.TabIndex = 2;
     this.tChart1.Tools.Add(this.seriesAnimation1);
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Bottom.Pen.Visible = false;
     this.tChart1.Walls.Bottom.Size        = 5;
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Left.Pen.Visible = false;
     this.tChart1.Walls.Left.Size        = 5;
     //
     // chartContainer
     //
     this.chartContainer.Location = new System.Drawing.Point(0, 104);
     this.chartContainer.Size     = new System.Drawing.Size(488, 269);
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button1.Location  = new System.Drawing.Point(13, 8);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(75, 23);
     this.button1.TabIndex  = 0;
     this.button1.Text      = "&Animate...";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // hScrollBar1
     //
     this.hScrollBar1.Location = new System.Drawing.Point(140, 11);
     this.hScrollBar1.Maximum  = 1000;
     this.hScrollBar1.Minimum  = 1;
     this.hScrollBar1.Name     = "hScrollBar1";
     this.hScrollBar1.Size     = new System.Drawing.Size(100, 17);
     this.hScrollBar1.TabIndex = 2;
     this.hScrollBar1.Value    = 100;
     this.hScrollBar1.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar1_Scroll);
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.Location  = new System.Drawing.Point(100, 11);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(37, 13);
     this.label1.TabIndex  = 1;
     this.label1.Text      = "&Steps:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // labelSteps
     //
     this.labelSteps.AutoSize    = true;
     this.labelSteps.Location    = new System.Drawing.Point(247, 11);
     this.labelSteps.Name        = "labelSteps";
     this.labelSteps.Size        = new System.Drawing.Size(25, 13);
     this.labelSteps.TabIndex    = 3;
     this.labelSteps.Text        = "100";
     this.labelSteps.UseMnemonic = false;
     //
     // barSeries1
     //
     //
     //
     //
     this.barSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
     this.barSeries1.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
     this.barSeries1.ColorEach   = true;
     //
     //
     //
     //
     //
     //
     this.barSeries1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.barSeries1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.barSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.barSeries1.Marks.Callout.Distance    = 0;
     this.barSeries1.Marks.Callout.Draw3D      = false;
     this.barSeries1.Marks.Callout.Length      = 20;
     this.barSeries1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.barSeries1.Marks.Callout.Visible     = false;
     this.barSeries1.Title = "barSeries1";
     //
     //
     //
     this.barSeries1.XValues.DataMember = "X";
     this.barSeries1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.barSeries1.YValues.DataMember = "Bar";
     //
     // seriesAnimation1
     //
     this.seriesAnimation1.Series     = this.barSeries1;
     this.seriesAnimation1.StartAtMin = false;
     this.seriesAnimation1.StartValue = 0;
     //
     // checkBox1
     //
     this.checkBox1.FlatStyle       = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox1.Location        = new System.Drawing.Point(280, 9);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.Size            = new System.Drawing.Size(87, 21);
     this.checkBox1.TabIndex        = 4;
     this.checkBox1.Text            = "&One by one";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // button2
     //
     this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button2.Location  = new System.Drawing.Point(387, 8);
     this.button2.Name      = "button2";
     this.button2.Size      = new System.Drawing.Size(75, 23);
     this.button2.TabIndex  = 5;
     this.button2.Text      = "&Edit...";
     this.button2.Click    += new System.EventHandler(this.button2_Click);
     //
     // Tools_SeriesAnim
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(488, 373);
     this.Name = "Tools_SeriesAnim";
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.chartContainer.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 3
0
        public StackedBars()
        {
            tChart1 = new Chart();
            tChart1.Aspect.View3D = false;

            this.bar1             = new Steema.TeeChart.Styles.Bar();
            this.bar2             = new Steema.TeeChart.Styles.Bar();
            this.bar3             = new Steema.TeeChart.Styles.Bar();
            this.seriesAnimation1 = new Steema.TeeChart.Tools.SeriesAnimation();
            // tChart1
            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.Increment                = 5D;
            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.Right.Title.Caption            = "Billions";
            this.tChart1.Axes.Right.Title.Lines              = new string[] { "Billions" };
            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.Footer.Alignment                    = TextAlignment.Start;
            this.tChart1.Footer.Font.Brush.Color             = Color.Black;
            this.tChart1.Footer.Font.Italic                  = true;
            this.tChart1.Footer.Font.Name                    = "Verdana";
            this.tChart1.Footer.Lines                 = new string[] { "Source : BI Intelligence estimates, Interactive Advertising Bureau" };
            this.tChart1.Footer.Visible               = true;
            this.tChart1.Header.Font.Brush.Color      = Color.Gray;
            this.tChart1.Header.Font.Size             = 12;
            this.tChart1.Header.Lines                 = new string[] { "Native Advertising Revenue" };
            this.tChart1.Legend.Alignment             = Steema.TeeChart.LegendAlignments.Top;
            this.tChart1.Legend.Font.Brush.Color      = Color.FromRgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.tChart1.Legend.Pen.Visible           = false;
            this.tChart1.Legend.Shadow.Visible        = false;
            this.tChart1.Legend.Transparent           = true;
            this.tChart1.Panel.Bevel.Outer            = Steema.TeeChart.Drawing.BevelStyles.None;
            this.tChart1.Panel.Bevel.Width            = 2;
            this.tChart1.Panel.BevelWidth             = 2;
            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.Series.Add(this.bar3);
            this.tChart1.SubHeader.Font.Brush.Color = Color.FromRgb(((int)(((byte)(157)))), ((int)(((byte)(157)))), ((int)(((byte)(157)))));
            this.tChart1.SubHeader.Lines            = new string[] { "Desktop and Mobile" };
            this.tChart1.SubHeader.Visible          = true;
            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;
            this.tChart1.GetAxisLabel            += new Steema.TeeChart.GetAxisLabelEventHandler(this.tChart1_GetAxisLabel);
            // 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               = false;
            this.bar1.Marks.Arrow.Visible     = false;
            this.bar1.Marks.ArrowLength       = 8;
            this.bar1.Marks.Brush.Color       = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.bar1.Marks.FollowSeriesColor = true;
            this.bar1.Marks.Font.Brush.Color  = Color.White;
            this.bar1.Marks.Pen.Color         = Color.FromRgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
            this.bar1.Marks.Shadow.Visible    = false;
            this.bar1.MultiBar                = Steema.TeeChart.Styles.MultiBars.Stacked;
            this.bar1.Pen.Color               = Color.FromRgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
            this.bar1.Title                   = "Native-Style Display";
            this.bar1.VertAxis                = Steema.TeeChart.Styles.VerticalAxis.Right;
            this.bar1.XValues.Order           = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            this.bar1.GetSeriesMark          += new Steema.TeeChart.Styles.Series.GetSeriesMarkEventHandler(this.bar1_GetSeriesMark);
            // bar2
            this.bar2.BarRound                = Steema.TeeChart.Styles.BarRounding.AtValue;
            this.bar2.Brush.Color             = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
            this.bar2.Color                   = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
            this.bar2.ColorEach               = false;
            this.bar2.Marks.Arrow.Visible     = false;
            this.bar2.Marks.ArrowLength       = 8;
            this.bar2.Marks.Brush.Color       = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
            this.bar2.Marks.FollowSeriesColor = true;
            this.bar2.Marks.Font.Brush.Color  = Color.White;
            this.bar2.Marks.Pen.Color         = Color.FromRgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
            this.bar2.Marks.Shadow.Visible    = false;
            this.bar2.MultiBar                = Steema.TeeChart.Styles.MultiBars.Stacked;
            this.bar2.Pen.Color               = Color.FromRgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32)))));
            this.bar2.Title                   = "Sponsorship";
            this.bar2.VertAxis                = Steema.TeeChart.Styles.VerticalAxis.Right;
            this.bar2.XValues.Order           = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            // bar3
            this.bar3.BarRound                = Steema.TeeChart.Styles.BarRounding.AtValue;
            this.bar3.Brush.Color             = Color.FromRgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20)))));
            this.bar3.Color                   = Color.FromRgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20)))));
            this.bar3.ColorEach               = false;
            this.bar3.Marks.Arrow.Visible     = false;
            this.bar3.Marks.ArrowLength       = 8;
            this.bar3.Marks.Brush.Color       = Color.FromRgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20)))));
            this.bar3.Marks.FollowSeriesColor = true;
            this.bar3.Marks.Font.Brush.Color  = Color.White;
            this.bar3.Marks.Pen.Color         = Color.FromRgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20)))));
            this.bar3.Marks.Shadow.Visible    = false;
            this.bar3.MultiBar                = Steema.TeeChart.Styles.MultiBars.Stacked;
            this.bar3.Pen.Color               = Color.FromRgb(((int)(((byte)(145)))), ((int)(((byte)(46)))), ((int)(((byte)(12)))));
            this.bar3.Title                   = "Social";
            this.bar3.VertAxis                = Steema.TeeChart.Styles.VerticalAxis.Right;
            this.bar3.XValues.Order           = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            // seriesAnimation1
            this.seriesAnimation1.StartValue = 0D;
            // StackedBars

            tChart1.Panel.Gradient.Visible = false;

            bar1.Add(1);
            bar1.Add(1.3);
            bar1.Add(1.9);
            bar1.Add(2.7);
            bar1.Add(3.9);
            bar1.Add(5.7);

            bar2.Add(0.8);
            bar2.Add(1);
            bar2.Add(1.3);
            bar2.Add(2);
            bar2.Add(2.7);
            bar2.Add(3.4);

            bar3.Add(2.9);
            bar3.Add(5.6);
            bar3.Add(7.5);
            bar3.Add(9.2);
            bar3.Add(10.7);
            bar3.Add(11.9);

            this.tChart1.Aspect.ZoomText = true;

            chartView = new ChartView
            {
                VerticalOptions   = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                WidthRequest      = 50,
                HeightRequest     = 50
            };
            chartView.Model = tChart1;

            Content = new StackLayout
            {
                VerticalOptions = LayoutOptions.FillAndExpand,
                Children        =
                {
                    chartView
                }
            };
        }