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

chart setOptions randomly inject object into series data array

1 Answer 66 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Anna
Top achievements
Rank 1
Anna asked on 08 Nov 2017, 05:40 PM

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. 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Nov 2017, 11:06 AM
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.
Tags
Charts
Asked by
Anna
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or