add clicking to line graphs