Improve the tooltips of the burndown graph

stable
David Barragán Merino 2015-06-20 22:15:32 +02:00 committed by Alejandro Alonso
parent 7901b87333
commit 0dcc6b92a4
2 changed files with 8 additions and 8 deletions

View File

@ -995,16 +995,16 @@ BurndownBacklogGraphDirective = ($translate) ->
tooltipOpts: {
content: (label, xval, yval, flotItem) ->
if flotItem.seriesIndex == 1
ctx = {xval: xval, yval: yval}
ctx = {sprintName: dataToDraw.milestones[xval].name, value: Math.abs(yval)}
return $translate.instant("BACKLOG.CHART.OPTIMAL", ctx)
else if flotItem.seriesIndex == 2
ctx = {xval: xval, yval: yval}
ctx = {sprintName: dataToDraw.milestones[xval].name, value: Math.abs(yval)}
return $translate.instant("BACKLOG.CHART.REAL", ctx)
else if flotItem.seriesIndex == 3
ctx = {xval: xval, yval: Math.abs(yval)}
ctx = {sprintName: dataToDraw.milestones[xval].name, value: Math.abs(yval)}
return $translate.instant("BACKLOG.CHART.INCREMENT_TEAM", ctx)
else
ctx = {xval: xval, yval: Math.abs(yval)}
ctx = {sprintName: dataToDraw.milestones[xval].name, value: Math.abs(yval)}
return $translate.instant("BACKLOG.CHART.INCREMENT_CLIENT", ctx)
}
}

View File

@ -894,10 +894,10 @@
"CHART": {
"XAXIS_LABEL": "Sprints",
"YAXIS_LABEL": "Points",
"OPTIMAL": "Optimal pending points for sprint {{xval}} should be {{yval}}",
"REAL": "Real pending points for sprint {{xval}} is {{yval}}",
"INCREMENT_TEAM": "Incremented points by team requirements for sprint {{xval}} is {{yval}}",
"INCREMENT_CLIENT": "Incremented points by client requirements for sprint {{xval}} is {{yval}}"
"OPTIMAL": "Optimal pending points for sprint \"{{sprintName}}\" should be {{value}}",
"REAL": "Real pending points for sprint \"{{sprintName}}\" is {{value}}",
"INCREMENT_TEAM": "Incremented points by team requirements for sprint \"{{sprintName}}\" is {{value}}",
"INCREMENT_CLIENT": "Incremented points by client requirements for sprint \"{{sprintName}}\" is {{value}}"
},
"TAGS": {
"TOGGLE": "Toggle tags visibility",