add graph legend