I want to "Set the Bottom Axis to Current Date or Time";but
Posted: Fri Nov 28, 2014 10:52 am
I want to "Set the Bottom Axis to Current Date or Time";but Fail;
Steema Software - Customer Support Forums
http://teechart.com/support/
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";
}