Page 1 of 1

Label

Posted: Tue Aug 02, 2011 12:12 pm
by 8123522
How do I get a get a veritical label to appear next to the left axis labels, sample attahed of what is required,text of Target Number

Re: Label

Posted: Tue Aug 02, 2011 2:48 pm
by 10050769
Hello MikeTheLad,

I have made a simple example, that I think you can use to achieve as you want:

Code: Select all

 private void InitializeChart()
        {
            Steema.TeeChart.Styles.HorizBar horizBar = new Steema.TeeChart.Styles.HorizBar(tChart1.Chart);
            tChart1.Aspect.View3D = false;

            DateTime today = DateTime.Today;
            TimeSpan oneDay = TimeSpan.FromDays(1);
            horizBar.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Top;
            Random rnd = new Random();
            for (int i = 1; i < 10; i++)
            {
                horizBar.Add(i,rnd.Next(), Color.Green);
                
            }
            horizBar.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Top;
            tChart1.Axes.Left.Title.Visible = true;
            tChart1.Axes.Left.Title.Text = "Target Number";
            tChart1.Axes.Top.Title.Visible = true;
            tChart1.Axes.Top.Title.Text = "Number of Calls";
        }
Could you please, tell us if previous code works as you expected?

Thanks,