Assign datatime value to lbottom label

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tenaris
Newbie
Newbie
Posts: 39
Joined: Fri Mar 02, 2007 12:00 am

Assign datatime value to lbottom label

Post by tenaris » 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!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Assign datatime value to lbottom label

Post by Narcís » Fri Apr 30, 2010 1:49 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply