Large values in chart view

2 posts, 0 answers
  1. Michael
    Michael avatar
    40 posts
    Member since:
    Jan 2012

    Posted 23 Feb Link to this post

    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

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    761 posts

    Posted 28 Feb Link to this post

    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.
Back to Top