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

X axis Datetimecontinousaxis problem when setting a large timespan

7 Answers 131 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Maxwell
Top achievements
Rank 1
Maxwell asked on 03 Dec 2019, 07:28 PM
When I set my x axes datetime continuous axis to more than 4 hours or so the chart will freeze my UI.

7 Answers, 1 is accepted

Sort by
0
Maxwell
Top achievements
Rank 1
answered on 04 Dec 2019, 01:34 PM
I have verified this in a separate project I have a DateTimeContinousAxis and I have the Minimum bound to a DateTime and the Maximum bound to a DateTime a day or so in the future...When I start adding data to the chart it freezes every time. Im not sure what to do. Thanks
0
Maxwell
Top achievements
Rank 1
answered on 04 Dec 2019, 01:43 PM
Another thing to note is my tick intervals is set to milliseconds 
0
Maxwell
Top achievements
Rank 1
answered on 04 Dec 2019, 01:46 PM
Also it seems there is a limit on how much the chart is able to zoom in with a large time span
0
Martin Ivanov
Telerik team
answered on 06 Dec 2019, 10:59 AM

Hello Maxwell,

Basically, you can show whatever range of the axis and usually this should not affect the performance, unless huge amount of ticks is generated. You can improve this by reducing the number of ticks via the SmartLabelsMode of the axis, or via its MajorStep and MajorStepUnit properties.

Also, the performance can be low if there is a large amount of data points shown within the viewport, as already discussed in the other forum.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Maxwell
Top achievements
Rank 1
answered on 09 Dec 2019, 02:03 PM

Yes I am generation 100 million ticks. I assume thats the problem?

 

Also is there a limit to how much I can zoom in ? What is zoom defaulted to?

0
Maxwell
Top achievements
Rank 1
answered on 09 Dec 2019, 08:57 PM
Another question I have is if I set the ticks to seconds instead of milliseconds will the data-points in between the tick intervals still exist and also work with the trackball feature?
0
Accepted
Martin Ivanov
Telerik team
answered on 12 Dec 2019, 09:20 AM

Hello Maxwell,

Showing 100 million ticks at once means 100 million UI elements for the WPF rendering engine, which is pretty heavy operation. To minimize this you can use one of the approach mentioned in my last reply.

You can control the zooming limit via the MinZoom and MaxZoom properties of RadCartesianChart.

About your last question, yes, if you change the tick interval, the data points will still exists and the trackball will work.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Chart
Asked by
Maxwell
Top achievements
Rank 1
Answers by
Maxwell
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or