Home

Awesome

DEPRECATED Please use the official Chart.js legend instead.

Chart.js.legend

An implementation of legend widget for Chart.js.

Simply legend(parent, data). See demo.js for a full example.

If you need to support older browsers (IE8 and such), use src/legend.legacy.js. Otherwise you can stick with src/legend.js.

Quick example

<div id="placeholder"></div>
var data = ...;  // refers to the charts data
legend(document.getElementById('placeholder'), data);

Contributors

License

MIT.