This should be implemented as a per-series attribute. The API for visibility predates support for per-series options and should not be copied. See http://dygraphs.com/tests/per-series.html