Chart Dataset Enabled Property

Is there any way to access a charts dataset enable/disable property?

I am trying to have some selection buttons that will eliminate specific pens from several plots in one chart. I can’t use the easy chart because I need the database to be dynamically selected.

Yes. You can enabled/disable it using a scripting function on the chart. Here is an example:chart = event.source.parent.getComponent('Chart') chart.setDatasetEnabled("Data", 0)Just replace the “Data” with the name of the dataset you want to disable.

2 Likes

Yes! Thank you.

I looked through manual for this property and could not find anything. Is there a list of properties for components that is not listed in the manual?

This one is not documented right now but I made a note to put it in our system.

My script is not able to see a root container property to dynamically set this property.