Add event listener to cell plot (not a repeat of an older question!)

I have the same question as this person for a very different use-case that’s not going to be handled by anything built into Plot. So: how does one add an event listener to each cell of an (ever-changing) cell-plot? I need a new visualization to show up alongside my cell plot depending on which cell is clicked on, based on data from that cell. The basic mechanism is obviously there under the hood, since clicking on a cell freezes the tooltip, but I have no idea how to access it. (I’m very new to JavaScript and Observable; and I can post this over in the Observable Framework GitHub if that’s a better place.) Thanks in advance!

main documentation Interactions | Plot

So plot kinda exports the value automatically with viewof current ... + the pointer mark

simple example: Community Help / Tom Larkworthy | Observable

insane example: Direct Manipulation Plot / Tom Larkworthy | Observable

Perfect, thank you!! (I think it’s just view() in Observable Framework, but I get the idea.)

1 Like