Legend component added.