adding legend to line chart