I’d like to be able to put my legend for a graph in an opaque box, so if part of the graph passes behind it, it’s not visually distracting. I tried to hack this by putting an opaque rectangle behind the legend, but then the swatches for legend are being hidden by the rectangle. Bringing the swatches forward in layers would be a quick fix, and adding a boxed option to the legend component would be a nicer long term fix.
Here’s a minimal example: Doenet
In my actual activity, it’s not enough to just move the legend because the students are choosing the graphs, so they could end up crossing the legend no matter where I put it.