X Axis labels

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
phirst
Newbie
Newbie
Posts: 1
Joined: Fri Nov 15, 2002 12:00 am
Contact:

X Axis labels

Post by phirst » Mon Dec 20, 2004 11:10 am

Hi,
Are XValues.Datamember and LabelMember compatible?

My database query returns a DataSet, using the following code I hope to display "StringLabelValue" labels on the X axis with "IntegerValue" values on the X axis
(IntegerValue = time since midnight in seconds, StringLabelValue = time formatted HH:MM:SS, there are periods in the data without data, this is why I am using the integer value as the DataMember)

series.XValues.DataMember = "IntegerValue";
series.LabelMember = "StringLabelValue";
series.YValues.DataMember = "DataValue";
series.DataSource = ds.Tables[0].DefaultView;

THE LABELS ARE NOT CORRECT
The Integer value is displayed
AxisStyle = Value
No labels are displayed
AxisStyle = Text

How do I display "StringLabelValue"?
Any ideas?

Thanks.

Glenn F. Henriksen
Newbie
Newbie
Posts: 52
Joined: Tue Mar 04, 2003 5:00 am

Post by Glenn F. Henriksen » Tue Aug 16, 2005 11:39 pm

Hi.
I don't have an answer to your post but I was wondering if you ever came up with a solution. were you able to draw integer and text values on the x-axis combined? I understand it's been a while since this was posted so i'm keeping my fingers crossed.

J.Rahman
Intel Corporation

Post Reply