I am working with a dynamic Array object
this.rating.data = {[4, 1, 8, 3, 3]};
The Array I'm dealing with is
this.rating.labels = ["In", "Lo", "Me", "Hi", "Cri"];
There are cases where some data will be zero
this.rating.data = {[1, 8, 3, 3]};
and
this.rating.labels = ["Lo", "Me", "Hi", "Cri"];
I attempted to handle this by creating a new Array Object, but I encountered difficulties
[{
"In": 0,
"Lo": 1,
"Me": 8,
"Hi" : 3,
"Cri": 3,}]