Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
susielu committed Nov 15, 2017
1 parent 7e12b6e commit bdbd121
Show file tree
Hide file tree
Showing 14 changed files with 1,057 additions and 879 deletions.
352 changes: 142 additions & 210 deletions d3-legend.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions d3-legend.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs/color.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ legendColor.**labelFormat(d3.format or d3.format string)**

Takes a [d3.format](https://github.com/mbostock/d3/wiki/Formatting) and applies that styling to the legend labels. Default is set to `d3.format(".01f")`.

legendColor.**locale(d3.format locale)**

Takes a [d3.format locale](https://github.com/d3/d3-format/tree/master/locale) and applies it to the legend labels. Default is set to [US english](https://github.com/d3/d3-format/blob/master/locale/en-US.json).

legendColor.**labelOffset(number)**

A value that determines how far the label is from the symbol in each legend item. Default set to 10px.
Expand Down
6 changes: 3 additions & 3 deletions docs/d3-legend.min.js

Large diffs are not rendered by default.

333 changes: 189 additions & 144 deletions docs/docs.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/docs.min.js

Large diffs are not rendered by default.

0 comments on commit bdbd121

Please sign in to comment.