seperated legend and graphgroups. Still have to think about naming....