jQuery 1.9.1, HTML, CSS, JavaScript
No-Library (pure JS), HTML, CSS, JavaScript
embedded template
jQuery 1.8.3, HTML, CSS, JavaScript
It also shows how to make legend text correspond to the swatch color (the square in front of the series' text).