[{name: 'A', team: 'team alpha', value:"10"},
{name: 'A', team: 'team beta' value:"20"},
{name: 'A', team: 'team gamma' value:"40"},
{name: 'B', team: 'team alpha' value:"15"},
{name: 'B', team: 'team beta' value:"25"},
{name: 'C ', team: 'team alpha' value:"30"}];
I am looking to organize the data in a specific format as shown below:
name:A
team alpha: 10
team beta: 20
team gamma:40
name:B
team alpha:15
team beta:25
name:C
team alpha:30
I tried searching online for a solution to group this data structure, but couldn't find any. Can someone help me with how I can achieve this grouping or filtering of data in angularjs based on the mentioned format? Any assistance would be greatly appreciated.