Skip to content

Please support range breaks #266

Closed
@bionicles

Description

@bionicles

Hi, thank you for maintaining this crate!

I'm working on some financial charts and curious if it would be possible to support range breaks to hide weekends for data which only happens during business days?

Benefit: time series data could look better with skipping weekends / "routine discontinuities" where there's no data

In the Python API, this is in fig.update_layout as the xaxis_rangebreaks argument.

I checked the book, the Axis, and the Layout, didn't see any rangebreaks

It would be ideal if a solution could be flexible enough to support days of the week (weekends) as well as hours of days (e.g. when markets are closed overnight in hourly financial data)

Here is the API reference for the python version of this feature:
https://plotly.com/python/reference/layout/xaxis/#layout-xaxis-rangebreaks

And here is a guide section:
https://plotly.com/python/time-series/#hiding-weekends-and-holidays

Happy New Year and I look forward to use this more and help out. I really appreciate the speed of the library in cranking plots!

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