✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

How can I get a callback for clicking on an axis label?

I’d like to get a callback and be able to do something when someone clicks on a label. For example, if someone clicks on the xlabel or ylabel.

Does anyone know how I could do that using javascript?

In case anyone was wondering, I just completely removed the labels and recreated them manually in a way that I could add callbacks as needed.