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.plotly as py
import plotly.graph_objs as go
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)