When redrawing the graph all lines are displayed then set to visible or not may be the right way is to display only visible lines