Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Fill between two vertical lines but multiple times #176

@PaulForInvent

Description

@PaulForInvent

Hey, I wonder how I can do that.

I tried it the follwoing way, but it also need very much time if you have a lot of add_vrect to add...

I calculated beforehand the needed start and end positions for each single add_vrect.

But this somehow seems not working as all of the chart is filled...

Maybe is it he time format? My Time format is like: 2021-07-15T01:00:00.000000000.

How can I do this more simpler of without a for loop to be more efficient?

  for index, row in enumerate(first):
       start = row
       end = last[index]

       fig.add_vrect(x0=start, x1=end,
                     annotation_text="decline", annotation_position="top left",
                     fillcolor="green", opacity=0.25, line_width=1)

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