added legend for the legend, it appears in the upper right corner of the graph.