curran / d3-area-label

A library for placing labels in areas.
BSD 3-Clause "New" or "Revised" License
76 stars 4 forks source link

Padding #5

Closed curran closed 7 years ago

curran commented 7 years ago

It appears that sometimes text actually falls outside the bounding box, as we can see here: image To solve this, and as a general nice option to have, let's add an option for label padding. We probably should have vertical padding and horizontal padding able to be different values.