I want to "Set the Bottom Axis to Current Date or Time";but
I want to "Set the Bottom Axis to Current Date or Time";but
I want to "Set the Bottom Axis to Current Date or Time";but Fail;
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: I want to "Set the Bottom Axis to Current Date or Time";but
Hello!
You could try something like this:
You could try something like this:
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Line line1 = new Line(tChart1.Chart);
DateTime dt = DateTime.Today;
for (int i = 0; i < 10; i++)
{
line1.Add(dt, 100);
dt = dt.AddHours(12);
}
tChart1.Axes.Bottom.Labels.Angle = 90;
tChart1.Axes.Bottom.Labels.DateTimeFormat = "MM/dd hh:mm tt";
}
Best Regards,
Christopher Ireland / 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 |