Has anyone ever thought about (or tried to make) something like a photo data type in CODAP? I was thinking this could be nice to have in case card view for certain datasets, like perhaps the domestic house cats dataset (could show a photo of each individual cat in the card). Although I don’t know if that would work in a table, or if someone tried to drag a photo attribute onto a graph’s axis.
I’m revisiting this post now because I have a dataset in CODAP where having an auto detected URL data type, as well as an image data type, would be really nice. See here: https://bit.ly/AIfeederDataMA . The column/attribute name is “link to screenshot.” I could see also an attribute for the screenshot itself. I’m not sure how this would work in table form, but I could see it in case card view. Perhaps the image of the screenshot could be put at the top or bottom of the card, something like the attached image below that I quickly mocked up.
One way to potentially make this work would be to create a plugin that monitors the selectionList in CODAP. If the selection changes and contains only one case, then the plugin could scan the case attribute values looking for URLs. Once the first one is found, the plugin could open a webview (or perhaps modify an open webview) to display the URL.