Thanks for the link, I’m getting somewhere and quite close to what I wanted to achieve! I need a minor alternation but can’t seem to get it right. The data
returned the following when I clicked on the first column (the ‘gold’ column):
{'points': [{'curveNumber': 2, 'pointNumber': 0, 'pointIndex': 0, 'x': 'gold', 'y': 9, 'label': 'gold', 'value': 9, 'bbox': {'x0': 147.03, 'x1': 619.3, 'y0': 83.5, 'y1': 83.5}}]}
{'points': [{'curveNumber': 1, 'pointNumber': 0, 'pointIndex': 0, 'x': 'gold', 'y': 10, 'label': 'gold', 'value': 10, 'bbox': {'x0': 147.03, 'x1': 619.3, 'y0': 145.14, 'y1': 145.14}}]}
{'points': [{'curveNumber': 0, 'pointNumber': 0, 'pointIndex': 0, 'x': 'gold', 'y': 24, 'label': 'gold', 'value': 24, 'bbox': {'x0': 147.03, 'x1': 619.3, 'y0': 213.63, 'y1': 213.63}}]}
I would actually want to retrieve the curveNumber
and highlight just that; I was able to do with clicked_point = data["points"][0]["curveNumber"]
to retrieve it, but unsure how to use it. So if I clicked on the ‘blue’ bar, then only the ‘blue’ bar is selected, so imagine that there is the same blue bar on the top again (above the green one), then only these two ‘blue’ bars are selected, the ‘green’ and ‘red’ are unselected.

Is there another parameter that I can call here instead of selectedpoints
, used in trace.update({'selectedpoints': [clicked_point]})
, in order to achieve what I described? If it was not clear enough, I can try to provide some sample code!