# Deselect the series Legends of Chart Control automatically

**URL:** <https://discourse.nodered.org/t/deselect-the-series-legends-of-chart-control-automatically/12782>\
**Category:** Dashboard\
**Created:** [1 July 2019 11:11 UTC](https://discourse.nodered.org/t/deselect-the-series-legends-of-chart-control-automatically/12782 "2019-07-01T11:11:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalyan1986](https://avatars.discourse-cdn.com/v4/letter/k/f14d63/32.png) [@kalyan1986](https://discourse.nodered.org/u/kalyan1986)\
**Post date:** [1 July 2019 11:11 UTC](https://discourse.nodered.org/t/deselect-the-series-legends-of-chart-control-automatically/12782/1 "2019-07-01T11:11:50Z")

</div>

I would like to deselect all the series legends of the line chart. Can it be done programmatically?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [1 July 2019 17:04 UTC](https://discourse.nodered.org/t/deselect-the-series-legends-of-chart-control-automatically/12782/2 "2019-07-01T17:04:37Z")

</div>

Hi. Not quite sure what you mean ? You want to turn off the legend ? Or want to hide all the data ? (Seems a bit odd to not show data). Or maybe something else ?

---

<div class="post-metadata">

**Author:** ![kalyan1986](https://avatars.discourse-cdn.com/v4/letter/k/f14d63/32.png) [@kalyan1986](https://discourse.nodered.org/u/kalyan1986)\
**Post date:** [2 July 2019 05:21 UTC](https://discourse.nodered.org/t/deselect-the-series-legends-of-chart-control-automatically/12782/3 "2019-07-02T05:21:58Z")

</div>

You got me wrong. I would like to show the legend but hide the data initially . Based on user's interest he would be selecting the desired series labels and accordingly it should plot the graph.

Hope I'm able to convey my requirement if not let me know.  
Thanks for your reply!
