Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Pierlou opened this issue May 15, 2024 · 0 comments
Open

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

Pierlou opened this issue May 15, 2024 · 0 comments

Comments

@Pierlou
Copy link

Pierlou commented May 15, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant