chart setOptions randomly inject object into series data array

2 posts, 0 answers
  1. Anna
    Anna avatar
    64 posts
    Member since:
    Jul 2015

    Posted 08 Nov 2017 Link to this post

    I have trouble with kendo chart's setOptions method, which randomly inject data into my chart's series data array. 

    I our app, we have a grid, on selecting a row in the grid, a chart is plotted below. However, we are finding the chart plotting random points where value should be null (see attached image). I find if I comment out calls to setOptions method, the problem disappears. Similarly, if I change kendo to an older version (2016.~) this problem goes away as well. 

  2. Stefan
    Admin
    Stefan avatar
    1780 posts

    Posted 10 Nov 2017 Link to this post

    Hello, Anna,

    The setOptions method is only adding new options to the Chart, and should not cause the described behavior of adding more data points.

    Could you please provide and runnable example or at least the setOptions method call in order to inspect what may be causing the issue.

    Based on the provided code currently I can only assume that there may be an issue with the missingValues property or with the aggregates as the default aggregate is max:

    https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-series.missingValues

    https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-series.aggregate


    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 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