score:1

I found the solution to this.

In the above code, implementation of $scope.chartConfig is wrong. The correct method to be implemented is

$scope.chartConfig = {data:responseNifty};

in place of

$scope.chartConfig={
   data:[{}]
};
$scope.chartConfig.data.push(responseNifty);

Related Query