Skip to content

Plot does not appear in some cases if rangebreaks overlap #7270

Open

Description

@mofojed

I've created a Codepen for the issue: https://codepen.io/mofojed/pen/ZEgPJPN
In this case, the data spans a week, and range breaks are specified for a full holiday on Thursday, Nov 23, 2023 (Thanksgiving), and a half day on Friday, Nov 24, 2023. These specifications overlaps with other patterns for business days.
The chart does not appear. It looks like the rangebreaks that Plotly.js locates for the plot is:
Image
Where some of those overlap. It looks like that isn't taken into account when calculating the breaks length, so when there's overlap it will not generate a valid break length:

for(var i = 0; i < rangebreaksOut.length; i++) {

I think it would make sense to check for overlapping here. I'll see if it's possible to adjust holidays to not overlap with any existing business periods as well...

#5783 is similar

Activity

  1. added
    bugsomething broken
    P2considered for next cycle
    on Nov 15, 2024
  2. emilykl commented on Aug 28, 2026

    @emilykl
    Contributor
  3. marked Rangebreaks overlap issue #5783 as a duplicate of this issue on Aug 28, 2026
  4. emilykl commented on Aug 28, 2026

    @emilykl
    Contributor
  5. emilykl commented on Aug 28, 2026

    @emilykl
    Contributor

    Note: seems to be the same as the plotly.py issue plotly/plotly.py#2998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions