WikiReader: Augmenting Hover Labels with web data and images
Dec 5, 2019 1:08 PM
In JMP 15.0 hover labels got extensions that provide the ability to the display images and rich text inside hover labels. The image displayed and what happens when you click on it are completely under the control of the user. One can retrieve an image from a column, a file or a URL built dynamically based on the graph context (e.g. X and Y values of your graph).
To showcase this feature, this example uses a generic script called WikiReader.jsl that can make HTTP requests to retrieve (and cache) bits of information about a topic from Wikipedia. It also shows how to process JSON payloads into JSL data structures for further processing. We then use this script to create another called AugmentedIris.jsl, which demonstrates how to augment the hover labels of a typical Iris scatterplot to show data-driven images and custom text downloaded from the web.
I have to say, it looks a lot prettier this way. :)