Skip to content

Reset Zoom (From Angular App) #14

@alexgoldstone

Description

@alexgoldstone

I have successfully used angular-plotly.js to embed a Plotly.js chart within my Angular application.

If I update the X or Y data then the chart updates as expected.

The user is able to zoom using the standard Plotly.js zoom functionality and the user can double-click to reset the zoom level.

  1. Is it possible to reset the zoom level from within the Angular application (e.g. if a button outside the Ploylt.js chart is clicked then reset the zoom level of the chart as though the user double-clicked the chart)?

  2. Is it possible to obtain the zoom level and/or min and max values for the range displayed after the user has zoomed? The events do not seem to receive the necessary data values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions