/d3-legend

A reusable d3 legend component.

Primary LanguageJavaScriptISC LicenseISC

d3-legend

Full documentation: http://d3-legend.susielu.com

Usage

Client-side

You must inclue the d3 library before including the legend file. Then you can simply add the compiled js file to your website:

  • d3-legend.min.js
  • d3-legend.js (Human readable version)

npm

You can add the d3 legend as a node module by running:

npm install --save d3-svg-legend

Feedback

I would love to hear from you about any additional features that would be useful, please say hi on twitter @DataToViz.