highcharts

Highcharts Dashboard freezes after deleting and re-adding components


I'm encountering an issue while working with Highcharts Dashboards in an Angular project using the following version: "highcharts": "^12.2.0"

The problem can be reproduced using the demo available on the official Highcharts website: https://www.highcharts.com/demo/dashboards/minimal

To reproduce the issue:

Enable "Edit mode" on the dashboard.

Add any component except the "Highcharts" component.

Delete the component you just added.

Try adding a new component.

At this point, the dashboard freezes and becomes unresponsive. In the browser console, the following error appears:

Cannot read properties of undefined (reading 'chart')


Solution

  • Thanks for pointing this out, you are right, this is a bug, and a regression from v3.1 of Dashboards. I've raised a bug report here:

    https://github.com/highcharts/highcharts/issues/22999

    You can watch this issue in the link above and track any information and workarounds for this one.

    Until it gets resolved, you can revert to v3.1 of Dashboards as a workaround.