示例#1
0
 private void DonutTimer_Tick(object sender, EventArgs e)
 {
     if ((tChart3[0] as Steema.TeeChart.Styles.Donut).AngleSize <= 360)
     {
         (tChart3[0] as Steema.TeeChart.Styles.Donut).AngleSize = (tChart3[0] as Steema.TeeChart.Styles.Donut).AngleSize + 5;
     }
     else
     {
         DonutTimer.Stop();
         DonutTimer.Enabled = false;
         AnimateBarChart();
     }
 }
示例#2
0
        //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();
        }
示例#3
0
        private void World1_Click(object sender, MouseEventArgs e)
        {
            int idx = world1.Clicked(e.X, e.Y);

            if (idx != -1)
            {
                this.Text = world1.Labels[idx];
                this.Text = world1.Shapes[idx].Index.ToString();
                string ContName = GetContinentFromCountry(world1.Labels[idx]);
                if (ContName == "AN")
                {
                    ContName = "SA";
                }


                refreshRegionChart(ContName);
                (tChart3[0] as Steema.TeeChart.Styles.Donut).AngleSize = 0;
                setBottomChartIndex(ValueIndexCountry);
                DonutTimer.Enabled = true;
                DonutTimer.Start();
            }
        }