Page 1 of 1

X Axis labels

Posted: Mon Dec 20, 2004 11:10 am
by 8117216
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.

Posted: Tue Aug 16, 2005 11:39 pm
by 8119814
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