Expected behaviour
When updating the connector URL via DataPool.setConnectorOptions(), the Highcharts Component should reflect the changes and render data from the new URL after the next data load.
Actual behaviour
The Highcharts Component does not reflect changes made via DataPool.setConnectorOptions(). It continues to display data from the previous URL.
Investigation reveals that while the DataPool correctly sends requests to the new URL, the Highcharts Component retains a reference to the old connector instance. Specifically, component.connectorHandlers[0].connector.options still contains the old URL, causing the component to render stale data.
Additionally: Updating the connector options causes the polling mechanism to stop working, even when enablePolling: true is explicitly included in the new options object:
{
id: 'coinData',
type: 'JSON',
beforeParse: parser,
dataUrl: 'https://api.coingecko.com/api/v3/coins/bitcoin/market_chart?vs_currency=usd&days=1',
firstRowAsNames: true,
enablePolling: true,
dataRefreshRate: 10
}
Live demo with steps to reproduce
JsFiddle demo
- Open the demo.
- Observe the initial data values (Currency is in Euro).
- Click the "Connector change" button.
- Observe the data values again.
Result: Although the network tab shows the connector fetching the new USD data, the Highcharts Component continues to display the old Euro data.
Product version
Highcharts Dashboards v4.0.0 (2025-11-05)
Affected browser(s)
Chrome version 143.0.7499.41 (64-bit)
Expected behaviour
When updating the connector URL via
DataPool.setConnectorOptions(), the Highcharts Component should reflect the changes and render data from the new URL after the next data load.Actual behaviour
The Highcharts Component does not reflect changes made via
DataPool.setConnectorOptions(). It continues to display data from the previous URL.Investigation reveals that while the DataPool correctly sends requests to the new URL, the Highcharts Component retains a reference to the old connector instance. Specifically,
component.connectorHandlers[0].connector.optionsstill contains the old URL, causing the component to render stale data.Additionally: Updating the connector options causes the polling mechanism to stop working, even when
enablePolling: trueis explicitly included in the new options object:Live demo with steps to reproduce
JsFiddle demo
Result: Although the network tab shows the connector fetching the new USD data, the Highcharts Component continues to display the old Euro data.
Product version
Highcharts Dashboards v4.0.0 (2025-11-05)
Affected browser(s)
Chrome version 143.0.7499.41 (64-bit)