Assign datatime value to lbottom label
Posted: Thu Apr 29, 2010 9:49 pm
Hi again,
I have this:
DateTime startShift = new DateTime(2010, 04, 29, 00, 00, 00);
DateTime endShift = new DateTime(2010, 04, 29, 07, 59, 59);
I set everything in my horizontal bar to show in my bottom axe the datetime variable as string.
However, What I need is to show just the "starShift" variable in the "minValueX" and the "endShift"
variable in the maxValueX of my chart.
tChart1.Axes.Bottom.Labels.DateTimeFormat = startShift.ToString();
tChart1.Axes.Bottom.Labels.MultiLine = true;
horizBar1.XValues.DateTime = true;
1) Could please tell me what property I need to change for display this?
DateTime startShift = new DateTime(2010, 04, 29, 00, 00, 00);must be shown
in the minvalueX.
DateTime endShift = new DateTime(2010, 01, 10, 07, 59, 59); must be shown
in the MAxValueX of my bottom axe.
2) Set as not visible the thicks in my chart.
Thanks a lot!
I have this:
DateTime startShift = new DateTime(2010, 04, 29, 00, 00, 00);
DateTime endShift = new DateTime(2010, 04, 29, 07, 59, 59);
I set everything in my horizontal bar to show in my bottom axe the datetime variable as string.
However, What I need is to show just the "starShift" variable in the "minValueX" and the "endShift"
variable in the maxValueX of my chart.
tChart1.Axes.Bottom.Labels.DateTimeFormat = startShift.ToString();
tChart1.Axes.Bottom.Labels.MultiLine = true;
horizBar1.XValues.DateTime = true;
1) Could please tell me what property I need to change for display this?
DateTime startShift = new DateTime(2010, 04, 29, 00, 00, 00);must be shown
in the minvalueX.
DateTime endShift = new DateTime(2010, 01, 10, 07, 59, 59); must be shown
in the MAxValueX of my bottom axe.
2) Set as not visible the thicks in my chart.
Thanks a lot!