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

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

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.

Thanks,

It is exactly what I wanted to do

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!