I am encountering an issue with one of my packedbubble charts throwing a RangeError in the title when attempting to export the graph, while the others work fine. The chart builder remains the same for all graphs; only the data and title text are appended to the chart during export.
You can view a live demo here. Key code snippet provided below:
This code includes functions for creating assetCirclePack charts, clearing selected highlights, handling chart point clicks, and exporting charts to different file formats. The main function assetCirclePack initializes the Highcharts chart with specific configurations. There are additional functions such as clearSelectedHighlight to reset selections, chartPointClick to handle point clicks, and chartExportSwitch/chartExportLoc for exporting charts in various formats.
The assetCirclePack function takes parameters like targetDiv ID, dataset array, labelfilter value, useSimulationBool flag, exportURL for file export, and NoDataString message to display if there is no data available. It creates a packedbubble chart based on the dataset provided.
The clearSelectedHighlight function loops through active charts to reset highlighted points. On the other hand, the chartPointClick function manages interactivity when a chart point is clicked.
The chartExportSwitch function allows users to select the output format (JPEG, PNG, SVG, PDF) for the exported chart. It uses the chartExportLoc function to generate the export based on the specified type and chart configuration details.
These functions ensure smooth interaction and flexibility in exporting interactive packedbubble charts created using Highcharts.