Can we add an onClick prop to Legend component which is invoked with the name/value of the clicked series?
Hi @sabarnix thanks for checking out vx!
Yes absolutely, surprised I forgot to add this. Will add in v0.0.150
How to do it in the current version?
@pisharodySrikanth see https://vx-demo.now.sh/legends for an example
<LegendItem
onClick={() => {
alert(`clicked: ${JSON.stringify(label)}`);
}}
>
Hey, thanks for the prompt reply. Wondering how I missed that.
Most helpful comment
Hi @sabarnix thanks for checking out vx!
Yes absolutely, surprised I forgot to add this. Will add in
v0.0.150