Label

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MikeTheLad
Newbie
Newbie
Posts: 65
Joined: Mon Jan 19, 2004 5:00 am

Label

Post by MikeTheLad » Tue Aug 02, 2011 12:12 pm

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
Attachments
Capture.JPG
Capture.JPG (138.8 KiB) Viewed 3942 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Label

Post by Sandra » Tue Aug 02, 2011 2:48 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply