So I love how you can toggle the visibility of certain data groups using the legend, but I'd also like to do some other things when a particular legend item is clicked.
However, when I provide a callback function to legend.item.onclick, I lose the original toggle functionality, which I'd like to preserve.
What's a simple way to extend the toggle functionality?
Hello!
So I love how you can toggle the visibility of certain data groups using the legend, but I'd also like to do some other things when a particular legend item is clicked.
However, when I provide a callback function to
legend.item.onclick
, I lose the original toggle functionality, which I'd like to preserve.What's a simple way to extend the toggle functionality?
Thanks in advance!