Apologies for the previous message … I read your first post first thing this morning and thought it was simple … its not.
I had another thought that it might be the fold transform that is preventing the hyperlink from working in your example, but duplicated one of my interim “work” pages for the top 20 table, added the href, and it seems to work.
Not sure why it’s not working in the main composite visual. I tried moving the transform for the URL inside the top 20 table, but that still didn’t help things.
Hello @Greg , thanks!
Yes, I did not know you could add hyperlinks either, but a user asked me to do so for a good reason, so I checked it out and I was surprised you not only can but in a supposedly easy way.
Yes the fold does not seem to be the issue - I don’t have it in my chart and it still does not work. Interestingly, if you move the href to the scatter plot, it does work:
Hello @Greg !
I discussed with @dm-p who gave me the explanation and answer which I wanted to share with you
The trick is to make sure the __row__ field is passed to the “table”, which is not by default. In my chart for example, that has cross-filtering enabled, I noticed I was able to select a point of the scatterplot but not from the text marks.
To force Vega-lite to get the __row__, it was enough in both this case and my case to pass it on as a tooltip (file attached).
I hope it can help other people attempting to do the same! It really is a neat feature.