We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error Rectification

Team,

     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).

Attachment: ChartReact_a53ff4b7.zip

1 Reply

SM Srihari Muthukaruppan Syncfusion Team November 19, 2019 11:03 AM

Hi thara, 
  
Greetings from syncfusion. 
  
We have analyzed your query. From that, we would like to let you know that we are not clear about the exact requirement. We have also tried to reproduce the issue using json data. Unfortunately we are unable to reproduce the issue. We have also attached the sample used by testing. Please find the below sample and screenshot. 
  
  
Screenshot: 
 
  
If you still face this issue. Please share the following information which will be more helpful for further analysis and provide you the solution sooner. 
  
  • Try to reproduce the reported scenario in the above sample
  
  • Share the details if you have done any other customization in your sample.
  
Let us know if you have any concerns. 
  
Regards, 
Srihari M 


Loader.
Live Chat Icon For mobile
Up arrow icon