Clickable axis tick labels, is it possible?

I wonder if D3 or Plot have the functionality to make the axis tick labels clickable?
All I need is to click on a label and get its name to pass to another function

Thanks

you can select the tick labels with d3, even if your chart has been made with Plot. For example : Clickable tick labels / Fil / Observable

Thank you Fil! just what I needed.

I was using Chartjs and even though is possible their solution does not fit for my purpose, I’ll change to Plot instead

1 Like