Improve the tooltips of the burndown graph
parent
7901b87333
commit
0dcc6b92a4
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue