refactor (component.legend) expose dataCollection in Legend
refactor (component.legend) return null if no data collection
Merge pull request #117 from racker/legend-data

refactor (component.legend) expose dataCollection in Legend