My application seems to throw an error from the chart component saying "Cannot set property 'previousPoints' of undefined".
Chart component get whole properties through class props, these properties are fetched and given as JSON.
When i receive this JSON first time component renders perfectly, but when props is fed second time i get the above mentioned error. Your support in this will be of great help.
I have attached my current working file (will have error on your side if executed) of the chart component and data that is fed to the chart which is of JSON.
Note :Datasource in json is empty, will be set in parent function before feeding into the child(chart component).