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

Large values in chart view

1 Answer 32 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Veteran
Iron
Michael asked on 23 Feb 2018, 10:22 AM

Hallo,

i have a problem with displaying large values in chart view.

When i load my data set from server i get e.g. 1000 data point. one of this points have the value 730000000.83

The MaxZoom property is set to 5000000,5000000.

When you completely zoom in all the small values are hidden/not displayed in grid. The only line you can see is the line of the first value (730000000.83)

ID          Time                                     Value

52510    2012-06-06 17:30:50.000    730000000.83
52511    2012-06-06 18:00:50.000    71.97
52512    2012-06-06 18:30:50.000    70.12
52513    2012-06-06 18:45:50.000    79.19
52514    2012-06-06 19:00:50.000    78.26
52515    2012-06-06 19:15:50.000    77.33
52516    2012-06-06 19:30:50.000    76.4
52517    2012-06-06 19:45:50.000    75.47
52518    2012-06-06 20:00:50.000    74.54
52519    2012-06-06 20:15:50.000    73.61

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 28 Feb 2018, 10:18 AM
Hello Michael,

This undesired behavior is observed due to the large zoom level that is applied to the control. In this scenario, some precision is lost due to the fact that the underlying logic deals with doubles (with precision of 15-16 digits) and thus some data points and respectively line segments cannot be rendered as expected.

What I can suggest in such case is to either limit the MaxZoom property's values or filter your point collection so that such large amplitudes are avoided.

I hope you find any of these approaches applicable.

Regards,
Dilyan Traykov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ChartView
Asked by
Michael
Top achievements
Rank 1
Veteran
Iron
Answers by
Dilyan Traykov
Telerik team
Share this question
or