Added legend to graph view