Get Chart (not Easy Chart) mode in script

I took a look at JFree chart docs and found that the popup get's called from the JFreeChartPanel so far so good. I also found your helper function findJFChart(src) which returns the parent JFreeChartPanel and the targeted JFreeChart but I'm not sure where to go from here.