Connected legends with gtaphs. Graphs can change visibility