public void OnGet() { this.BurndownModel = new BurndownChartModel { Milestone = this.Milestone, TeamName = this.TeamName, LabelsFilter = this.Label, IncludeInvestigations = this.IncludeInvestigations }; }
public static BurndownChartModel ConvertIterationDataToBurndownChartModel(IterationModel data) { const int daysInIteration = 10; var points = data.DataPoints.Select(x => x.RemainingPoints).ToList(); var everhour = data.DataPoints.Select(x => x.RemainingEverhourPoints).ToList(); var chartModel = new BurndownChartModel { IdealBurndown = MakeIdealBurndown(data.InitialPoints, daysInIteration), IdealEverhourBurndown = MakeIdealBurndown(data.InitialEverhourPoints ?? data.InitialPoints, daysInIteration), PointBurndown = MakePointBurndown(points), EverhourBurndown = MakePointBurndown(everhour) }; return(chartModel); }