Merge pull request #543 from taigaio/improvement/burndown-chart-xaxix-ticks
Improve the tooltips of the burndown graphstable
commit
b8006b7c0f
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue