@shaun Thanks a lot for the update. Is it not possible to have the record count as the label for the Donut chart using custom JS ? Please see the below requirement, where 3,1 and 13 are the number of records.
@Chaish unfortunately not easy to do because the pie slices are rendered using canvas which prevents accessing elements using Javascript.
The legend does not use canvas, so you are able to iterate through those elements and modify/append to them the record count as the example post shows.
Adding a total in the center of the donut might be easier to achieve since it’s a static location. Refer to this post: