Bring time KPI "Lead/Lag in task completion" to the UI.
FEA: ItEr75S27PerProjectDashboard
This commit is contained in:
parent
33054a4899
commit
b478d4c3e6
2 changed files with 35 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ public class DashboardController extends GenericForwardComposer {
|
|||
private Chart progressKPItaskDeadlineViolationStatusChart;
|
||||
private Chart timeKPImarginWithDeadlineChart;
|
||||
private Chart timeKPIEstimationAccuracyChart;
|
||||
private Chart timeKPILagInTaskCompletionChart;
|
||||
|
||||
public DashboardController() {
|
||||
}
|
||||
|
|
@ -90,6 +91,18 @@ public class DashboardController extends GenericForwardComposer {
|
|||
generateProgressKPItaskDeadlineViolationStatusChart();
|
||||
generateTimeKPImarginWithDeadlineChart();
|
||||
generateTimeKPIEstimationAccuracyChart();
|
||||
generateTimeKPILagInTaskCompletionChart();
|
||||
}
|
||||
|
||||
private void generateTimeKPILagInTaskCompletionChart() {
|
||||
CategoryModel categoryModel;
|
||||
categoryModel = refreshTimeKPILagInTaskCompletionCategoryModel();
|
||||
Font labelFont = new Font("serif", Font.PLAIN, 10);
|
||||
timeKPILagInTaskCompletionChart.setXAxisTickFont(labelFont);
|
||||
Color[] seriesColorMappings = {Color.BLUE};
|
||||
timeKPILagInTaskCompletionChart.setAttribute("series-color-mappings",
|
||||
seriesColorMappings);
|
||||
timeKPILagInTaskCompletionChart.setModel(categoryModel);
|
||||
}
|
||||
|
||||
private void generateTimeKPIEstimationAccuracyChart() {
|
||||
|
|
@ -197,4 +210,18 @@ public class DashboardController extends GenericForwardComposer {
|
|||
return result;
|
||||
}
|
||||
|
||||
private CategoryModel refreshTimeKPILagInTaskCompletionCategoryModel() {
|
||||
CategoryModel result = new SimpleCategoryModel();
|
||||
List<Double> values = dashboardModel.getLagInTaskCompletionHistogram();
|
||||
Iterator<Double> it = values.iterator();
|
||||
for(double ii= DashboardModel.LTC_STRETCHES_MIN_VALUE;
|
||||
ii < DashboardModel.LTC_STRETCHES_MAX_VALUE;
|
||||
ii += DashboardModel.LTC_STRETCHES_STEP) {
|
||||
result.setValue(_("None"), _(String.valueOf(ii)), it.next());
|
||||
}
|
||||
result.setValue(_("None"),
|
||||
_(">"+DashboardModel.LTC_STRETCHES_MAX_VALUE),
|
||||
it.next());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,6 +31,14 @@
|
|||
threeD="false" yAxis="probability" orient="vertical"
|
||||
title="${i18n:_('Estimation Accuracy')}"
|
||||
paneColor="#FFFFFF" showLegend="false" />
|
||||
</hbox>
|
||||
<hbox>
|
||||
<chart id="timeKPILagInTaskCompletionChart"
|
||||
height="200px" width="1200px" type="bar"
|
||||
xAxis="deviation class [i, i+1) (days)"
|
||||
threeD="false" yAxis="probability" orient="vertical"
|
||||
title="${i18n:_('Lead/Lag in task completion')}"
|
||||
paneColor="#FFFFFF" showLegend="false" />
|
||||
</hbox>
|
||||
<hbox>
|
||||
<chart id="progressKPIglobalProgressChart"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue