Adding customized legends for multiple-line graphs