Added a legend to the chart