in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Displaying dates on X-Axis

Last post 03-11-2008 6:25 AM by Pravarap. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-11-2008 3:34 AM

    Displaying dates on X-Axis

    I am working with 2D XY- Plot chart, and I want to display dates on X-Axis of chart. The date values are taken from database. I set the "AnnoFormat" property of X-Axis to "DateShort" and "AnnoMethod" property to "values". It is displaying dates from 31-Dec-1899 onwards.Please tell me if I am missing any other property or method. Please reply as soon as possible.

    Thanks in advance.

  • 03-11-2008 5:46 AM In reply to

    Re: Displaying dates on X-Axis

    Hello,
     
    You need to set the Min and Max date for the X axis as well. This can be
    implemented using 'SetMinMax' property.
     
    Me.C1Chart1.ChartArea.AxisX.SetMinMax(CDate("01/01/2008"), CDate("1/15/2008"))
     
    I hope this helps.

    Regards,

    Allen Smith

    <Pravarap> wrote in message news:202726@10.0.1.98...

    I am working with 2D XY- Plot chart, and I want to display dates on X-Axis of chart. The date values are taken from database. I set the "AnnoFormat" property of X-Axis to "DateShort" and "AnnoMethod" property to "values". It is displaying dates from 31-Dec-1899 onwards.Please tell me if I am missing any other property or method. Please reply as soon as possible.

    Thanks in advance.



    http://helpcentral.componentone.com/cs/forums/p/74587/202726.aspx#202726

  • 03-11-2008 6:25 AM In reply to

    Re: Displaying dates on X-Axis

    Hello,

    Thank you very much. It is working properly but now it is not displaying the graph.

    It shows graph if min and max values for date are not set and if I set these values then it does not shows the graph.

    Can you please tell me the reason.

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.