Strange DateTime behaviour

4 posts, 0 answers
  1. Jacques
    Jacques avatar
    3 posts
    Member since:
    Sep 2011

    Posted 30 Nov 2011 Link to this post


    I have a chart with multiple series on it, representing time (x) vs speed (y) The 1st is supposed to span the entire length of the 'shift' and be drawn at 100 (%). The other series (there maybe many) will have points in between the 1st series' start and end time. However, when I do the data binding I get some strange visual results. The time line goes from e.g. 15:00:00 to 15:09:00 to 15:00:01, 15:00:02, etc.
    It looks like the chart does not take into account that it's actually the same timespan for both series. I can supply the sample application if required. Any help would be appreciated.

  2. Jacques
    Jacques avatar
    3 posts
    Member since:
    Sep 2011

    Posted 05 Dec 2011 Link to this post

    Ok, so I've tried some settings including chart.DefaultView.ChartArea.AxisX.IsDateTime = true; but the chart is still showing the same behaviour. If anyone can help with this issue it would be appreciated!
  3. Nikolay
    Nikolay avatar
    395 posts

    Posted 06 Dec 2011 Link to this post

    Hi Jacques,

    It appears that the problem is caused because the data is not sorted , however, it is difficult to pinpoint the exact problem without having a look at your code. Could you, please, open a support ticket and send us a sample runnable application, which demonstrates the issue, so that we can debug it locally and provide a solution.

    Best wishes,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  4. Geoffrey
    Geoffrey avatar
    23 posts
    Member since:
    Mar 2011

    Posted 06 Dec 2011 Link to this post

    Thanks for helping to sort it out. I changed the series mapping from XCategory to XValue and this fixed it.
Back to Top