Skip to content

Reset Zoom Button position settings are overwritten by the deprecated parameter #19412

Closed
@tararam

Description

@tararam

Expected behaviour

In Highcharts.
According to documentation the position of Reset Zoom Button should be set as follows:
chart: { zooming: { resetButton: { position: { x: [customXValue], y: [customYValue] }

Actual behaviour

The values above are overwritten by default values from now deprecated parameter:
chart: { resetZoomButton: { position: { ..... }
In the source code this happens in the private function setZoomOptions(), as below:
resetButton: merge(zooming.resetButton, options.resetZoomButton)

The workaround is passing the following in the options:
resetZoomButton: null

Live demo with steps to reproduce

I don't have a live demo.

Product version

Works correctly in: v10.3.3
Works Incorrectly in: v11.1.0

Affected browser(s)

This is a general behaviour

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions