Pass data to elementClick directive

In a recent project I needed to pass data to the elementClick directive of the pie chart to use in a drill down functionality. I am unsure if this is the correct way to do it, but it works for me.