update setVisibility to be able to set the visibility of multiple series at once