Added Legend HTML and Transitions