can u use instead of those magic numbers a string? so it would be eg
```
$scope.chartSource = items._facets[$scope.widget.configuration.source].terms;
```