Skip to content

Chart with navigator.xAxis.plotLines and/or navigator.xAxis.plotBands shrinks on re-render while toggling on/off the navigator #550

@Pixselve

Description

@Pixselve

Expected behaviour

The chart should not shrink on re-render, while toggling on/off the navigator (using the chart API).

Actual behaviour

When the following is set:

navigator: {
              xAxis: { plotLines: [], plotBands: [] },
            },

The chart shrinks every time the navigator is toggled on (re-renders between the toggling needs to happen).

2025-12-12_13-54-37.mp4

Live demo with steps to reproduce

https://stackblitz.com/edit/vitejs-vite-evbbd4hh?file=src%2FApp.tsx

Product version

  • highcharts-react-official: 3.2.1 (also tested 4.1.0)

Affected browser(s)

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions