Skip to content
Bug reportNov 30, 2026· 0:28· 13 views

Highcharts 13.1.1: changing a series to 'bar' via chart.update() does not auto-invert the chart

0:28 total

Comments · 0

Be the first to comment.

Bug reportby SceneRecap AI

mediumHighcharts core: chart/series update path (Chart.update / Series.update with a type change). The inverted state is not re-evaluated from series types the way it is at chart initialization.
os: macOSdpr: 1page: Highcharts 13.1.1 bar auto-inversion bug #25719 test pagelocale: en-USbrowser: Chromium 151.0.7922.34library: Highcharts 13.1.1 (cdn.jsdelivr.net)timezone: Europe/Berlinviewport: 1280x720

Repro steps

  1. 1.Load the test page. It renders a column chart 'Monthly Bike Hires' with Downtown and Harbor series. The status box reads 'chart.inverted: undefined (column chart, initial state)'.
  2. 2.Click the 'Update Harbor → Bar type' button. This changes the Harbor series to type bar after chart creation.
  3. 3.Observe that the chart still draws vertical columns. The status box reads 'chart.inverted: undefined ✗ expected: true (auto-inversion failed)'.
  4. 4.Control: click 'Compare: explicit inverted: true'. The chart renders as horizontal bars.

Expected

After the Harbor series is changed to type 'bar', the chart should auto-invert. chart.inverted should become true and the series should render as horizontal bars, with months on the vertical axis.

Actual

After the update the chart stays non-inverted. chart.inverted is undefined and Harbor still renders as vertical columns, with months on the horizontal axis and Hires on the vertical axis.

Evidence

visualInitial state: column chart with Downtown and Harbor series. Status box reads 'chart.inverted: undefined (column chart, initial state)'.
visualAfter clicking 'Update Harbor → Bar type', the legend shows only Harbor. Bars stay vertical. The status box turns red and reads 'chart.inverted: undefined ✗ expected: true (auto-inversion failed)'.
visualTooltip 'Apr, Harbor: 200' appears on a vertical bar. The chart is still not inverted.
visualControl case: after clicking 'Compare: explicit inverted: true', the chart renders horizontal bars with months on the vertical axis and Hires 0 to 320 on the horizontal axis. The status box turns green and reads 'chart.inverted: true ✓ (explicit inverted: true works, control case)'. Explicit inversion works correctly.
consoleUnrelated warning: parser-blocking cross-site script highcharts.js invoked via document.write.
consoleUnrelated warning: Highcharts suggests including the accessibility.js module.
Issue markdown (copy-paste ready)
## Summary
In Highcharts 13.1.1, changing a series to type `bar` after chart creation does not auto-invert the chart. `chart.inverted` stays `undefined`. Setting `inverted: true` explicitly works.

## Environment
- Highcharts 13.1.1 (cdn.jsdelivr.net)
- Chromium 151.0.7922.34, macOS
- Viewport 1280x720, DPR 1

## Steps to reproduce
1. Load the test page. A column chart 'Monthly Bike Hires' renders with Downtown and Harbor series. Status: `chart.inverted: undefined (column chart, initial state)` (1.0s).
2. Click **Update Harbor → Bar type** (8.5s).
3. Observe the chart (9.0s).
4. Control: click **Compare: explicit inverted: true** (18.8s).

## Expected
After Harbor is changed to `bar`, the chart auto-inverts. `chart.inverted` is `true` and the bars are horizontal.

## Actual
The chart stays non-inverted. Harbor still renders as vertical columns. Status reads `chart.inverted: undefined ✗ expected: true (auto-inversion failed)` (9.0s to 17.0s). At 17.0s the tooltip 'Apr, Harbor: 200' sits on a vertical bar.

## Control case (works)
At 18.8s, clicking **Compare: explicit inverted: true** renders horizontal bars. Months are on the vertical axis and Hires runs 0 to 320 on the horizontal axis. Status reads `chart.inverted: true ✓`. This points to the auto-inversion logic only.

## Console
Only unrelated warnings at 0s: a document.write parser-blocking script warning and the accessibility.js module suggestion. No errors.

## Suggested area
The Chart.update / Series.update type-change path. It does not re-evaluate `inverted` from series types the way chart initialization does.

*Recorded with SceneRecap.*

This report was written by SceneRecap from a screen recording. Try SceneRecap free

Turn a screen recording into a bug report like this one.

Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.

Try SceneRecap free →