I have been reading the (excellent) Bokeh documentation like crazy but I can’t find a way to construct this. I can use a tap event
(p.js_on_event('tap', callback) to print the clicked x, y coordinates into the console
(console.log(cb_obj.x)),but this is not what I want. It seems I have to create a blank figure ( for the pie chart), and write a CustomJS code which will filter out the suitable data and populate this pie chart, using the iso code (which I don’t know how to extract from the tap event). But I also want to have some simple text in the div, which I was hoping can show up when the click has happened.
This might be a horrible ‘architecture’ idea in the first place, I started using Bokeh a week ago and I’m not an experienced programmer either, so any ideas will be greatly appreciated!