I’m testing out a Nivo pie chart and I’d like to launch an external URL when clicking on one of the data elements in the chart. I’ve included a URL in the data, and using a toast message like this returns the correct data with URL:
Show-UDToast -Message $EventData
However, I then tried to use:
Start-Process $EventData.URL
but nothing happens when I click on the data element. I can run this same command in the design terminal, but I’m guessing that maybe a new process can’t be launched from the OnClick event? Is there any way to achieve this, either with a Nivo chart or a different component?
@adamdriscoll - do you know of a way to refer to the clicked data element in an onClick scriptblock for a UDChart? For instance, if I click on a pie wedge, can I customize the action based on which wedge I clicked on?
I can’t find a way to do this currently, which is why I was looking at the Nivo chart since I can use $EventData to achieve this.