I am trying to fill blank values when no data available for particular months. Here is plunker.. <http://plnkr.co/edit/f0IklkUfX8tkRZrn2enx?p=preview>

```
$scope.year = [
{"month":"mar", "val":"23"},
{"month":"feb", "val":"45"},
{"month":"jan", "val":"56"}   
];

var total = ["jan", "feb", "mar", "apr", "may", "jun", "aug", "sep", "oct", "nov", "dec"];

for(var i=0; i<total.length; i++){

if($scope.year[i].month === undefined){ //logic here to see absent month.

        $scope.year.push(
        {
            "month":total[i],
            "val":"0" 
        })
    }
}

```

I have created array of default total months items for compare each month item from expected object, if the item is absent in expected object, need to create empty item or with value "0" in expected object itself.