This is a migrated thread and some comments may be shown as answers.

Strange DateTime behaviour

3 Answers 57 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jacques
Top achievements
Rank 1
Jacques asked on 30 Nov 2011, 03:19 PM
Hi,

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.

Thanks!

3 Answers, 1 is accepted

Sort by
0
Jacques
Top achievements
Rank 1
answered on 05 Dec 2011, 11:48 AM
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!
0
Nikolay
Telerik team
answered on 06 Dec 2011, 08:48 AM
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,
Nikolay
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Geoffrey
Top achievements
Rank 1
answered on 06 Dec 2011, 10:42 AM
Thanks for helping to sort it out. I changed the series mapping from XCategory to XValue and this fixed it.
Tags
Chart
Asked by
Jacques
Top achievements
Rank 1
Answers by
Jacques
Top achievements
Rank 1
Nikolay
Telerik team
Geoffrey
Top achievements
Rank 1
Share this question
or