Date and Time series example

Posted by: erickooij on 8 September 2017, 2:42 pm EST

  • Posted 8 September 2017, 2:42 pm EST

    Dear support,

    Can anyone supply me with a working sample for the

    charting tool where I need to display a series of values over multiple dates (including times)

    as a XYLines chart.

    If possible in for the latest version and in Visual Studio 2010 / VB.NET

    I need to create this chart independent only by code.

    Kind regards,

    Eric Kooij

  • Replied 8 September 2017, 2:42 pm EST

    I don't have any code samples for you that were not shipped with the product. I would imagine though that you would convert the DateTime objects to Ticks and use those for your X axis values.
  • Replied 8 September 2017, 2:42 pm EST

    Dear Paul,

    That is what I do already, I converted the date / time to a julian date and time fraction  eg. 40700,345 etc.

    The challenge is now to convert the X labels to meaningfull date / time labels (eg 2011/01/01 12:45).

    The documentation is not very clear in how to set your own labels instead of the automatic numerical labels.

    Eric 

  • Replied 8 September 2017, 2:42 pm EST

    Eric,

    Please have a look at the attached sample wherein you can use CategoryNames property of the Series to set your own labels instead of the automatic ones.

    Hope this will help you. Thanks.


    2011/07/TimeSeriesCategoryNames.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels