Every time the data change in the $scope the legends should change as well, especially if using the segments[i].value in the legend template.