Do we need `$scope.graph`? Can't this just be `$scope.widget` and then only use that in the view (currently the view uses `$scope.graph` for both the frame and the graph, which is probably unintentional).