# Pie chart selectData not working

**URL:** <https://community.plotly.com/t/pie-chart-selectdata-not-working/40079>\
**Category:** 📊 Plotly Python\
**Created:** [May 26, 2020, 12:24pm UTC](https://community.plotly.com/t/pie-chart-selectdata-not-working/40079 "2020-05-26T12:24:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rock999](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@rock999](https://community.plotly.com/u/rock999)\
**Post date:** [May 26, 2020, 12:24pm UTC](https://community.plotly.com/t/pie-chart-selectdata-not-working/40079/1 "2020-05-26T12:24:11Z")

</div>

Hi all, can somebody please help me with enabling clickmode : ‘event+select’ in pie chart, I tried all ways but not working, also my plotly module is up-to-date but still clickmode is not working as bar chart.

```auto
import plotly.express as px
df = px.data.gapminder().query("year == 2007").query("continent == 'Europe'")
df.loc[df['pop'] < 2.e6, 'country'] = 'Other countries' # Represent only large countries
fig = px.pie(df, values='pop', names='country', title='Population of European continent')
fig.update_layout(clickmode = 'event+select')
fig.show

```

Module Version : plotly 4.7.1  
Only mouse pointer as simple chart is visible (not showing + pointer to select)

---

<div class="post-metadata">

**Author:** ![adamschroeder](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/adamschroeder/32/17280_2.png) [@adamschroeder](https://community.plotly.com/u/adamschroeder)\
**Post date:** [May 27, 2020, 2:58am UTC](https://community.plotly.com/t/pie-chart-selectdata-not-working/40079/2 "2020-05-27T02:58:02Z")

</div>

Hi @rock999  
Welcome to the Plotly community.  
What are you trying to achieve? You would like to click on a pie slice and see what?

---

<div class="post-metadata">

**Author:** ![rock999](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@rock999](https://community.plotly.com/u/rock999)\
**Post date:** [May 29, 2020, 3:34pm UTC](https://community.plotly.com/t/pie-chart-selectdata-not-working/40079/3 "2020-05-29T15:34:20Z")

</div>

I want to select 2 slices and show all pages chart’s data changes respect to these 2 selected slices. I archived these using selected multiple bars from bar chart… but don’t find option to select multiple pie slices.
