Wrong percent calculation in pie chart

Made a little update with my findings on the github issue. Any opinions on the last part of my comment on the issue?:

https://github.com/pi-hole/AdminLTE/issues/1612#issuecomment-778546583