Add legend for multiline graphs