Skip to content

Color option for different tasks/categories of <value> #34

Description

@Pierlou

Hi, thanks for this lib! I have easily been able to create a calendar heatmap, and I was wondering if there was a way to have different colorscales corresponding to a third column of my DataFrame, for instance:

date value task
2023-01-01 10 laundry
2023-01-02 8 laundry
2023-01-03 11 laundry
2023-01-04 10 dishwashing
2023-01-05 5 dishwashing
2023-01-06 12 cleaning
2023-01-07 4 dishwashing
2023-01-08 10 laundry

With this DataFrame, I was looking for a way to end up with a calendar that has three different colorscales if I call it like:

calplot(
    df,
    x='date',
    y='value',
    color='task',
)

similarly to other plotly graphs. Is that already possible?

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions