This is a two part question:
1 - I'm trying to add a button to the right of my legend, to show/hide (some) legend items. I'm struggling to position the item, its much more difficult than positioning an item inside the chart area, it's position doesn't seem to be quite as accessible. Is it possible to add margin to the legend box only on the right, to leave space for my button? I see a `margin` property, but it doesn't look like it's customizable per side.
2 - As I show&hide legend items, I need to reposition the button after redraw is called on the chart. I'm currently using the `redraw` event to try and do that, but that event seems to be fired at the start of the redraw, not after the animation has completed, so I no long have the updated position of the legend. Is there any sort of event that fires when redraw has been completed? Or should I do some sort of `setTimeout`?
Here's a jsfiddle with what I'm trying to do:
https://jsfiddle.net/dvxz56sw/4/