Home Forums Chart Support Error: Cannot read properties of null (reading ‘style’) Reply To: Error: Cannot read properties of null (reading ‘style’)

#36860

@praveen8357,

From the stackblitz example shared above, it seems like you are trying to update the dataPoints on clicking update button. You can update the datatPoints without recreating the chart as shown in our documentation page. Re-creating the chart on every update may impact the performance.

If this doesn’t resolve your issue, can you kindly brief us further about your requirement so that we can understand your scenario better and help you out?

—-
Manoj Mohan
Team CanvasJS