Hi, I tried to run this script, but I get an error on "table1:pic = p;" saying that the column type does not match. Is that because I use JMP 10?
Yes, the script above takes advantage of Expression columns, which I believe weren't introduced until JMP 12.
In JMP 15.0 we added a feature called graphlets that provides (among other things) the ability to the display images on demand inside hover labels. The image displayed and what happens when you click on it are completely under the control of the user. You can easily retrieve an image from a column, from a file or from a URL built dynamically based on the graph context (e.g. X and Y values of your graph). There is no need to store images in the table (though that is also supported).
You can see this functionality in action in the following File Exchange
For more information on graphlets, check https://www.jmp.com/content/dam/jmp/documents/en/support/jmp15/using-jmp.pdf, page 512.