benkeen / d3pie

A configurable pie chart lib and generator built on d3.js
MIT License
371 stars 203 forks source link

how can I change the colour of the percentage label inside the pie segment? #173

Open alexbfree opened 5 years ago

alexbfree commented 5 years ago

I need to figure out how to change the percentage text colour per segment as having the same colour on all segments creates unreadable text on some background colour - for accessibility I would like to be able to use white on some colours, black on others. How can this be done?