refactor (component.legend) expose dataCollection in Legend

Adding Data collection in Legend component to add, remove tags, etc. in data.