If you place the charts in a layoutgird with auto-fill, you can use dynamic classes on the column.
Assuming you have a Dashboard entity with a boolean called hidechart, your statement in the dynamic class would be if $currentObject/hidechart then 'hidden' else ''
Using the auto-fill will evenly spread the remaining charts in the row.
Hi!
What are the filters that you want to apply?
Because it can either be visibility conditions or through some Xpaths that you can achieve this, but it solely depends upon what and how you're trying to filter the charts.
Regards