I have the following data frame
| sensor_id | u_code | date_time |
|---|---|---|
| 1234abcd | 4 | 13-06-2022 18:02 |
| 5678efgh | 4 | 13-06-2022 18:02 |
| 1234abcd | 2 | 13-06-2022 18:03 |
| 5678efgh | 2 | 13-06-2022 18:03 |
| 1234abcd | 6 | 13-06-2022 18:04 |
| 5678efgh | 6 | 13-06-2022 18:04 |
| 1234abcd | 10 | 13-06-2022 18:05 |
| 5678efgh | 10 | 13-06-2022 18:05 |
| 1234abcd | 4 | 13-06-2022 18:06 |
| 5678efgh | 6 | 13-06-2022 18:06 |
| 1234abcd | 4 | 13-06-2022 18:07 |
| 5678efgh | 6 | 13-06-2022 18:07 |
| 1234abcd | 2 | 13-06-2022 18:08 |
| 5678efgh | 2 | 13-06-2022 18:08 |
| 1234abcd | 10 | 13-06-2022 18:09 |
| 5678efgh | 10 | 13-06-2022 18:09 |
| 1234abcd | 4 | 14-06-2022 18:02 |
| 5678efgh | 6 | 14-06-2022 18:02 |
| 1234abcd | 2 | 14-06-2022 18:03 |
| 5678efgh | 2 | 14-06-2022 18:03 |
| 1234abcd | 2 | 14-06-2022 18:04 |
| 5678efgh | 2 | 14-06-2022 18:04 |
| 1234abcd | 4 | 14-06-2022 18:05 |
| 5678efgh | 4 | 14-06-2022 18:05 |
| 1234abcd | 10 | 14-06-2022 18:06 |
| 5678efgh | 10 | 14-06-2022 18:06 |
| 1234abcd | 6 | 14-06-2022 18:07 |
| 5678efgh | 6 | 14-06-2022 18:07 |
| 1234abcd | 2 | 14-06-2022 18:08 |
| 5678efgh | 2 | 14-06-2022 18:08 |
| 1234abcd | 4 | 14-06-2022 18:09 |
| 5678efgh | 4 | 14-06-2022 18:09 |
I would like to make an interactive stacked bar plot using plotly which looks like below.
I am used to making stacked bar plots in plotly. But here my challenge is to have separate stacked bar plots (one per sensor_id) on each date.

