Skip to content

Checking if zoom is active #343

@tarockx

Description

@tarockx

Hello everybody

I want to show a "reset zoom" button on my web page, but I only want to show it if the chart is actually zoomed (i.e.: if it isn't completely zoomed out).

However, I can't seem to find a way to do this. I tried using the "onZoomComplete" callback, but it only has the "chart" parameter (which is the chart object), but no parameter that tells me the current zoom level.

Is there a way to get the current zoom level / know if zoom is active?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions