arrays

Best way to restructure data

I’m trying to reordening some data, because I need to do a Pie Chart.
I did something but going through many processes and maybe there is a better way to do this
This is my actual data (similar):
Input:
[
{
15: "3.0",
2…