DEV Community

loading...

Discussion on: Stacked and Grouped Bar Charts Using Plotly (Python)

Collapse
fronkan profile image
Fredrik Bengtsson Author

I tried to find a solution using the hovertemplate parameter, but I couldn't find how to access the actual value. However, I found one solution using hovertext= [f'Count: {val}' for val in data["model_2"]] for the Model 2 bar chart. This adds a row to the hove with Count: where value is the actual data value.