Spaces:
Sleeping
Sleeping
Heatmap: Setting the description in the HoverTool pop-up according to the X and Y axis description
Browse files- analyze_winscore.py +1 -1
analyze_winscore.py
CHANGED
@@ -301,7 +301,7 @@ def create_heatmap(data_matrix, original_scores,
|
|
301 |
|
302 |
# Add HoverTool for interactivity
|
303 |
hover = HoverTool()
|
304 |
-
hover.tooltips = [(
|
305 |
p.add_tools(hover)
|
306 |
|
307 |
# Add labels with dynamic text color
|
|
|
301 |
|
302 |
# Add HoverTool for interactivity
|
303 |
hover = HoverTool()
|
304 |
+
hover.tooltips = [(x_axis_label, "@x"), (y_axis_label, "@y"), ("DS", "@scores")] # Updated tooltip
|
305 |
p.add_tools(hover)
|
306 |
|
307 |
# Add labels with dynamic text color
|