# Pie Chart handle click

**URL:** <https://community.plotly.com/t/pie-chart-handle-click/2826>\
**Category:** plotly.js\
**Created:** [December 5, 2016, 9:07pm UTC](https://community.plotly.com/t/pie-chart-handle-click/2826 "2016-12-05T21:07:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElementOrange](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@ElementOrange](https://community.plotly.com/u/ElementOrange)\
**Post date:** [December 5, 2016, 9:07pm UTC](https://community.plotly.com/t/pie-chart-handle-click/2826/1 "2016-12-05T21:07:04Z")

</div>

Hello,

I’m using plotly.js to create a donut/pie chart with a legend/list of names on the side. Currently, when I click on a data name in the legend/list, it toggles that data on/off in the pie chart. Is it possible to change this behavior? I would like it to return the data name back to me when I click instead of the on/off toggle.

Please let me know if I can provide any more info. Thanks in advance for any help!

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [December 14, 2016, 2:43pm UTC](https://community.plotly.com/t/pie-chart-handle-click/2826/2 "2016-12-14T14:43:53Z")

</div>

> [@ElementOrange](#):
>
> it possible to change this behavior?

Not at the moment unfortunately.
