pguso/js-plugin-circliful

Central value different from a percentage / out of 10

bogal opened this issue · 2 comments

bogal commented

Is it possible for the central percentage to be a different value than a percent?

My circle is populated with a decimal out of 10 (i have set the total option to 10, and set the part to the decimal ie 4.6) - but would like the central text to display something like 4.6/10 (or even just 4.6) instead of the percent. Is this possible?

bogal commented

To be clear - a value of 4.8 would fill the circle to the equivalent of 48%, but display 4.8 in the center of the circle.

bogal commented

Figured this out - multiplied the percent value by 10 (so 4.8 = 48%) and set the replacePercentageByText value.