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: { tooltipOpts: {
content: (label, xval, yval, flotItem) -> content: (label, xval, yval, flotItem) ->
if flotItem.seriesIndex == 1 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) return $translate.instant("BACKLOG.CHART.OPTIMAL", ctx)
else if flotItem.seriesIndex == 2 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) return $translate.instant("BACKLOG.CHART.REAL", ctx)
else if flotItem.seriesIndex == 3 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) return $translate.instant("BACKLOG.CHART.INCREMENT_TEAM", ctx)
else 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) return $translate.instant("BACKLOG.CHART.INCREMENT_CLIENT", ctx)
} }
} }

View File

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