I'm using an amCharts v4 Pie chart and currently I have this tooltip that appears when hovering on the slices:
series.slices.template.tooltipText = "{category}: {value.percent.formatNumber('#.')}% ({value} hours)
However, I would like to have the "hours" pluralized correctly, i.e. when {value}
equals 1, I would like to have the text hour
instead of hours
.
Is something like this possible? I've found the Adapters, but I don't think they will be usable here because I'm using a special format with category, percentage and the text.