repos-viz / d3-legend

A reusable d3 legend component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A reusable d3 legend component.

License:ISC License


Languages

Language:JavaScript 97.5%Language:HTML 2.5%