# Chart selectedData and selection highlighted

**URL:** <https://forum.inductiveautomation.com/t/chart-selecteddata-and-selection-highlighted/14960>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [August 2, 2017, 7:45am UTC](https://forum.inductiveautomation.com/t/chart-selecteddata-and-selection-highlighted/14960 "2017-08-02T07:45:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoan](https://avatars.discourse-cdn.com/v4/letter/y/f9ae1b/32.png) [@Yoan](https://forum.inductiveautomation.com/u/Yoan)\
**Post date:** [August 2, 2017, 7:45am UTC](https://forum.inductiveautomation.com/t/chart-selecteddata-and-selection-highlighted/14960/1 "2017-08-02T07:45:02Z")

</div>

Hi,

I try to change on a Pie Chart the selection who is highlighted by script. What i know about Pie Chart is that they stored the Selected Wedge as selectedData and the selectedData is the mirror of the selection highlighted. Actually changing the selectedData does not change the highlighted section visually, not even the selectedEntity. Changing the selectedEntity did no effect on the slection who is highlighted too.

If you know a way to script that that will be appreciated 🙂

Thanks.

---

<div class="post-metadata">

**Author:** ![jasoncoope](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jasoncoope/32/18674_2.png) [@jasoncoope](https://forum.inductiveautomation.com/u/jasoncoope)\
**Post date:** [March 18, 2020, 5:18pm UTC](https://forum.inductiveautomation.com/t/chart-selecteddata-and-selection-highlighted/14960/2 "2020-03-18T17:18:44Z")

</div>

I’m too looking for a way to clear the selected wedge in a pie chart through scripting. Anyone know?
