Label
-
- Newbie
- Posts: 65
- Joined: Mon Jan 19, 2004 5:00 am
Label
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 (138.8 KiB) Viewed 3966 times
Re: Label
Hello MikeTheLad,
I have made a simple example, that I think you can use to achieve as you want:
Could you please, tell us if previous code works as you expected?
Thanks,
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";
}
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |