I can’t get the group and label to work for Ellipse plots.
Here’s a small example. As you can see it works for the Scatter points but not for ellipses.
Further, I’d like to pair each ellipse with its central point under one label so that clicking on the corresponding label in the legend toggles a particular point and its halo in and out together.
Ah, I see. Yes, I’ve done that.
That way, I get a set of ellipses and a set of dots in the legend. I want to have one element in the legend per a pair of ellipse and the point that I put in its center. Another thing that I like to do is when I click on the item in the legend, the pair, both ellipse and its center get dim.
You are amazing, @ahuang11 ! I’m learning a lot from you.
I know, you’ve already answered my original questions.
I’ve more questions on this topic as my project is evolving. Let me know if I should mark this post as Solved and start a new one.
I needed to fill in the ellipses with color. That’s why I had to bring hv.Polygons in. Now, I want to do all of this for polygons. The problem is that polygons are working with a set of ellipses, and the group and label doesn’t carry over from an ellipse to its corresponding polygon. Neither I’m able to set labels for a “set” of polygons. How can I pair a point with a polygon and switch that pair in and out by clicking on their corresponding label in the legend?