d3plus / d3plus-shape

Fancy SVG shapes for visualizations
MIT License
20 stars 2 forks source link

wrap labelConfig in configPrep #84

Closed davelandry closed 6 years ago

davelandry commented 6 years ago

Expected Behavior

Users should be able to set labelConfig options based on their own data.

Current Behavior

Currently, data is returned to accessor function nested inside of d.data. This is where we need to add configPrep: https://github.com/d3plus/d3plus-shape/blob/master/src/Shape/Shape.js#L470

Steps to Reproduce (for bugs)

https://jsfiddle.net/nfd9bo8q/56/