Need help in adding a click event in a pie chart created using plotly

I have created a pie chart as seen below using plotly. If image is not seen below, please click on this link to see https://plot.ly/~anithak.theva/0

I am looking for how to add support to each of partitions in pie chart so that on clicking on any area of any of the partition should pick and display related test cases in a table form. Currently my code shows all test cases on hovering. But the requirement is on clicking anywhere in the area should show a table of related test cases.

Appreciate input on this. Thanks!

The code I had used is

import plotly
import plotly.plotly as py
import plotly.graph_objs as go
plotly.tools.set_credentials_file(username=‘username’, api_key=‘api_key’)
labels = [‘ABORT’ + ‘:\n’ + “\n”.join(di[‘abort’]), ‘PASS’, ‘FAIL’ + ‘:\n’ + “\n”.join(di[‘fail’]),
‘SKIP’+ ‘:\n’ + “\n”.join(di[‘skip’])]
values = sizes
trace = go.Pie(labels=labels, values=values)
py.iplot([trace], filename=‘basic_pie_chart’)

image