plotly-calplot
plotly-calplot copied to clipboard
Color option for different tasks/categories of <value>
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?