Bug reportNov 19, 2026· 0:33· 11 views
Highcharts v13.1+: axis.update({ plotBands }) silently fails on second restore
0:33 total
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
mediumHighcharts Axis.update() plotBands handling (PlotLineOrBand add/destroy lifecycle). Plot band state is likely not reset after the first update cycle, so later updates are ignored.
os: macOSdpr: 1locale: en-USbrowser: Chromium 151.0.7922.34library: Highcharts 13 (cdn.jsdelivr.net/npm/highcharts@13), page targets v13.1+timezone: Europe/Berlinviewport: 1280x720
Repro steps
- 1.Load the test page. The line chart shows plot bands A and B, and the badge reads 'Bands: visible, 0 toggles'.
- 2.Click 'Hide bands'. The bands are removed.
- 3.Click 'Show bands'. Bands A and B are restored (control case, works).
- 4.Click 'Hide bands' again. The bands are removed.
- 5.Click 'Show bands' again.
- 6.Observe the chart. No plot bands are drawn and the badge reports 0 of 2 rendered.
Expected
Each click on 'Show bands' calls axis.update({ plotBands: [...] }) and renders bands A and B, as the first restore did at 15.0s.
Actual
The second restore renders 0 plot bands. The badge reads 'Click 4: 0 bands rendered, expected 2'. The button label switches to 'Hide bands', but the chart shows no bands. No error is shown.
Evidence
visualInitial state: bands A and B are rendered. Badge reads 'Bands: visible, 0 toggles'.
visualAfter the first 'Hide bands' click, the badge reads 'Click 1: bands hidden (0)' and no bands are drawn. The button reads 'Show bands'.
visualControl case works: after the first 'Show bands' click, the badge reads 'Click 2: bands visible (2)' and bands A and B are rendered again.
visualAfter the second 'Hide bands' click, the badge reads 'Click 3: bands hidden (0)' and the bands are gone.
visualAfter the second 'Show bands' click, the badge turns red and reads 'Click 4: 0 bands rendered, expected 2'. The chart shows no bands.
visualThe chart still has no bands while points are hovered (Jan 8 value 3.5, Jan 13 value 5). The button label says 'Hide bands'.
visualEnd of recording: still no bands rendered.
consoleOnly warnings appear: a parser-blocking cross-site script via document.write for highcharts@13, and the missing accessibility.js module notice. Neither relates to plot bands. No error is logged at the failure.
Issue markdown (copy-paste ready)
## Highcharts v13.1+: axis.update({ plotBands }) renders 0 bands on the second restore
**Environment:** Chromium 151.0.7922.34, macOS, 1280x720, DPR 1, en-US. Highcharts 13 loaded from cdn.jsdelivr.net (page targets v13.1+).
### Steps to reproduce
1. Load the test page. Bands A and B are visible. Badge: 'Bands: visible, 0 toggles' (1.0s).
2. Click **Hide bands**. The bands are removed (8.6s).
3. Click **Show bands**. The bands are restored. This is the control case and it works (12.9s, verified at 15.0s).
4. Click **Hide bands** again. The bands are removed (18.8s).
5. Click **Show bands** again (23.0s).
### Expected
Bands A and B render again, as they did after the first restore.
### Actual
No plot bands are drawn. The badge reads 'Click 4: 0 bands rendered, expected 2' (25.0s). The button label changes to 'Hide bands', but the chart is unchanged through the end of the recording (31.0s). Nothing is logged to the console.
### Evidence
- 15.0s: control case. Badge 'Click 2: bands visible (2)', both bands rendered.
- 18.8s: badge 'Click 3: bands hidden (0)'.
- 25.0s: red badge 'Click 4: 0 bands rendered, expected 2'. No bands drawn.
- 27.0s to 31.0s: hovering points still shows a chart with no bands.
- Console at 0s has only unrelated warnings: document.write script loading and a missing accessibility.js notice. No error appears at the failure.
### Suggested area
Axis.update() plotBands handling and the PlotLineOrBand add/destroy lifecycle. Updates after the first cycle appear to be ignored without any error.
*Recorded with SceneRecap.*Your recordings could explain themselves too.
Free plan · silent recordings welcome · bug reports included.
Try SceneRecap free →