Made the legend clickable

Still need to make it responsive with the timeline