benkeen / d3pie

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

Percentage values in equal distance from donut chart #169

Open jorgemonte opened 5 years ago

jorgemonte commented 5 years ago

Hello everyone,

I am trying to figure out how to solve this visual problem. The percentage values should be in equal distance from the donut. The 41% is clearly more distant than the 35%. I'd like to have the center of the value equally distant from the center of its related color donut part.

This part is defined by the code below:

"labels": {
        "outer": {
            "format": "label-percentage1",
            "pieDistance": 12
        },

(rest of the code)
[...]

Does someone know how could I solve it? (if is possible) Thank you!

image