# Is it possible to show/hide a subplot graph component?

**URL:** <https://forum.inductiveautomation.com/t/is-it-possible-to-show-hide-a-subplot-graph-component/10801>\
**Category:** Ignition\
**Created:** [November 17, 2015, 4:59pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-show-hide-a-subplot-graph-component/10801 "2015-11-17T16:59:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabrice\_CHAVEROT](https://avatars.discourse-cdn.com/v4/letter/f/ecc23a/32.png) [@Fabrice\_CHAVEROT](https://forum.inductiveautomation.com/u/Fabrice_CHAVEROT)\
**Post date:** [November 17, 2015, 4:59pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-show-hide-a-subplot-graph-component/10801/1 "2015-11-17T16:59:52Z")

</div>

Is it possible to show/hide subplots int the chart component (not easy chart) with the state of a check box for example ?

I don’t find scripting property for that

I am on Ignition 7.6.7

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 17, 2015, 5:35pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-show-hide-a-subplot-graph-component/10801/2 "2015-11-17T17:35:54Z")

</div>

You can enabled/disable it using a scripting function on the chart:

`chart = event.source.parent.getComponent('Chart')
chart.setDatasetEnabled("Data", 0)`  
Just replace the “Data” with the name of the dataset you want to disable.

---

<div class="post-metadata">

**Author:** ![Fabrice\_CHAVEROT](https://avatars.discourse-cdn.com/v4/letter/f/ecc23a/32.png) [@Fabrice\_CHAVEROT](https://forum.inductiveautomation.com/u/Fabrice_CHAVEROT)\
**Post date:** [November 18, 2015, 11:41am UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-show-hide-a-subplot-graph-component/10801/3 "2015-11-18T11:41:54Z")

</div>

Thanks,

It is exactly what I wanted to do

---

<div class="post-metadata">

**Author:** ![gljuk](https://avatars.discourse-cdn.com/v4/letter/g/90ced4/32.png) [@gljuk](https://forum.inductiveautomation.com/u/gljuk)\
**Post date:** [January 27, 2017, 8:24am UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-show-hide-a-subplot-graph-component/10801/4 "2017-01-27T08:24:00Z")

</div>

Hi!  
Is there a method that returns the enabled state of chart dataset properties?  
I mean i do not want to change the state with setdatasetEnabled function, i need to get the current state.  
Something like chart.getDatasetEnabled(“Dataset\_name”)

Thank you!
