Below is the data i get from the rest API

```
{
   "memberdetails":[
      {
         "id":46,
         "customername":"Zack",
         "phoneno":"1323223232",
         "nickname":"Zack",
         "regdate":"2017-12-27 18:38:36.185829",
         "groupname":"Test group",
         "regid":36,
         "groupdesc":"Test Test test",
         "groupicon":"new",
         "tamount":"3100"
      },
      {
         "id":46,
         "customername":"Carol",
         "phoneno":"254721493487",
         "nickname":"Caro",
         "regdate":"2017-12-28 23:47:22.317687",
         "groupname":"Test",
         "regid":36,
         "groupdesc":"Test Test Test",
         "groupicon":"new",
         "tamount":"130"
      }
   ]
}

```

From the above data i want to populate 2 arrays as i want to plot a graph in the below format. The lineChartData array should pick the tamount and the lineChartLabels Array should pick the customenames. Thank you.

```
public lineChartData:Array<any> = [{data: [15, 29, 24, 21, 26, 15, 10], label: 'Opening/Time'}];
public lineChartLabels:Array<any> = ["Dan","Were","Kibe","Zack","Evah","Chris","Jess"]; 

```