Skip to content

how to enable auto-formatting for time axis on zoom events with custom date-time format? #1513

Closed
@juni-green

Description

@juni-green

Hi,
Is there any way to keep the auto-formatting enabled for time axis in plotly.js graph even after applying customized formatting using "tickformat"?
Actually, I have customized the time format using:
tickformat: "%H:%M"
such that only Hour:Minutes appear on the time axis. But by doing so, I lost the default formatting functionality that works on zoom-in/zoom-out events. Now if I zoom-in, the tick format doesn't expand to seconds or milliseconds. Is it possible to make it work like default auto-formatting functionality on zooming-in/zooming-out with the above mentioned customization?

Any help will be appreciated.
Thanks!

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