Improvement: Prevent unneccessary redraws while updating the visibility state on graphs with many series

* Added the member [.setVisibilityArray], which updates the entire visiblity setting in one call, which works way faster on graphs with > 10 series by preventing unneccessary redraws.

 * Updated testcase