Page 1 of 1

Assign datatime value to lbottom label

Posted: Thu Apr 29, 2010 9:49 pm
by 9644416
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!

Re: Assign datatime value to lbottom label

Posted: Fri Apr 30, 2010 1:49 pm
by narcis
Hi tenaris,

In that case you'd better set custom marks for those labels. You'll find an example at All Features\Welcome !\Axes\Labels\Custom labels in the features demo, available at TeeChart's program group.