WPF Chart DateTime Format problem
Posted: Fri Oct 17, 2008 7:52 am
Hello
in this example datetime is not shown correctly( we do not see 24 hour format )
tChart1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yy hh:mm";
tChart1.Axes.Bottom.Labels.Angle = 90;
line1.XValues.DateTime = true;
DateTime dt = DateTime.Today;
for (int i = 0; i < 48; i++)
{
line1.Add(dt, i);
dt = dt.AddMinutes(30);
}
in this example datetime is not shown correctly( we do not see 24 hour format )
tChart1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yy hh:mm";
tChart1.Axes.Bottom.Labels.Angle = 90;
line1.XValues.DateTime = true;
DateTime dt = DateTime.Today;
for (int i = 0; i < 48; i++)
{
line1.Add(dt, i);
dt = dt.AddMinutes(30);
}