Page 1 of 1

CAxis IsDateTime method

Posted: Tue Feb 24, 2009 10:45 pm
by 9532498
I have a dialog with a checkbox for selecting/deselecting the DateTime format for an Axis. To get the value of this I use the following (and it works fine):

CAxis XAxis;

BOOL bDateTime = XAxis.IsDateTime();

However, I can't find a method in CAxis to set the value (to true or false) if the user selects the checkbox.

Thanks.

Posted: Wed Feb 25, 2009 3:06 pm
by narcis
Hello nbp,

This needs to be set at the series:

Code: Select all

   m_Chart1.Series(0).GetXValues().SetDateTime(true);