Updated captions and labels on project dashboard

FEA: ItEr76S15OrganizingPerProjectDashboard
This commit is contained in:
Lorenzo Tilve Álvaro 2012-05-16 10:07:58 +02:00
parent 7144a0335f
commit fe60eb8e88
2 changed files with 18 additions and 12 deletions

View file

@ -163,8 +163,7 @@ public class DashboardController extends GenericForwardComposer {
absoluteMargin + 0,
relativeMargin.doubleValue() * 100));
} else {
lblAbsolute
.setValue(_("Project Deadline not set"));
lblAbsolute.setValue(_("No project deadline defined"));
}
}
@ -228,8 +227,11 @@ public class DashboardController extends GenericForwardComposer {
barChart.setTicks(taskCompletationData.getTicks());
barChart.addValues(taskCompletationData.getValues());
barChart.getAxes().getXaxis()
.setLabel(_("Number of Days / Days Interval"));
barChart.getAxes()
.getXaxis()
.setLabel(
_("Days Interval (Calculated as task completion end date minus estimated end date)"));
barChart.getAxes().getYaxis().setLabel(_("Number of tasks"));
renderChart(barChart, divId);
}
@ -238,7 +240,8 @@ public class DashboardController extends GenericForwardComposer {
final String divId = "estimation-accuracy";
BarChart<Integer> barChart;
barChart = new BarChart<Integer>("Estimation Accuracy");
barChart = new BarChart<Integer>(
_("Estimation deviation on completed tasks"));
barChart.setFillZero(true);
barChart.setHighlightMouseDown(true);
@ -253,7 +256,9 @@ public class DashboardController extends GenericForwardComposer {
barChart.addValues(estimationAccuracyData.getValues());
barChart.getAxes().getXaxis()
.setLabel(_("Number of Tasks / % Deviation"));
.setLabel(
_("% Deviation interval (difference % between consumed and estimated hours)"));
barChart.getAxes().getYaxis().setLabel(_("Number of tasks"));
renderChart(barChart, divId);
}

View file

@ -22,12 +22,13 @@
apply="org.libreplan.web.dashboard.CostStatusController"
width="400px">
<hbox>
<vbox width="500px">
<hbox style="padding:20px 50px">
<vbox width="450px">
<hbox hflex="1" pack="center" vflex="1" style="margin-bottom:5px">
<label class="dashboard-title" value="${i18n:_('Current state indicators')}" />
</hbox>
<div class="dashboard-box" style="height:80px; width:450px; padding: 25px;">
<vbox width="20px" />
<div class="dashboard-box" style="height:80px; padding: 25px;">
<!-- Overtime ratio -->
<hbox hflex="1" vflex="1">
<vbox hflex="1" align="pack" vflex="1">
@ -55,12 +56,12 @@
</div>
</vbox>
<vbox width="20px" />
<vbox width="500px">
<vbox width="40px" />
<vbox width="450px">
<hbox hflex="1" pack="center" vflex="1" style="margin-bottom:5px">
<label class="dashboard-title" value="${i18n:_('Project closing previsions')}" />
</hbox>
<div class="dashboard-box" style="height:80px; width:450px; padding: 25px;">
<div class="dashboard-box" style="height:80px; padding: 25px;">
<!-- Overtime ratio -->
<hbox hflex="1" vflex="1">
<vbox hflex="1" align="pack" vflex="1">