Skip to content

Double rendering of time labels in rangebars #3915

@Blobie1012

Description

@Blobie1012

Description

If you want to use a rangebar to display the hours of a whole day, midnight will be displayed twice if the start time is between 11 p.m. and 12 p.m and the end time 24 hours later. I found the spot in the code that is causing the error. But I don't have the time to fix it myself at the moment. The error should be around here: src/modules/TimeScale.js, line 585.

image

Expected Behavior

Midnight should only be rendered once.

Steps to Reproduce

Here is a Stackblitz link to reproduce the bug:
https://stackblitz.com/edit/stackblitz-starters-4m3xw6?file=src%2Fmain.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions