Fixing backlog graph, removing unnecesary sprint names

stable
Alejandro Alonso 2014-08-28 12:10:57 +02:00
parent f1c945c4df
commit 94193ea3cb
3 changed files with 9 additions and 5 deletions

View File

@ -793,8 +793,7 @@ tgBacklogGraphDirective = ->
redrawChart = (element, dataToDraw) ->
width = element.width()
element.height(width/6)
milestones = _.map(dataToDraw.milestones, (ml) -> ml.name)
milestonesRange = [0..(milestones.length - 1)]
milestonesRange = [0..(dataToDraw.milestones.length - 1)]
data = []
zero_line = _.map(dataToDraw.milestones, (ml) -> 0)
data.push({
@ -844,11 +843,13 @@ tgBacklogGraphDirective = ->
borderColor: '#ccc'
}
xaxis: {
ticks: _.zip(milestonesRange, milestones)
ticks: dataToDraw.milestones.length
axisLabel: "Sprints"
axisLabelUseCanvas: true
axisLabelFontSizePixels: 12
axisLabelFontSizePixels: 14
axisLabelFontFamily: 'Verdana, Arial, Helvetica, Tahoma, sans-serif'
axisLabelPadding: 5
axisLabelPadding: 15
tickFormatter: (val, axis) -> ""
}
series: {
shadowSize: 0

View File

@ -66,6 +66,7 @@
"markitup": "~1.1.14",
"jquery-textcomplete": "yuku-t/jquery-textcomplete#~0.1.1",
"flot-orderBars": "emmerich/flot-orderBars",
"flot-axislabels": "markrcote/flot-axislabels",
"moment": "~2.6.0",
"isMobile": "~0.3.1",
"favico.js": "0.3.4",

View File

@ -70,6 +70,8 @@ paths = {
"app/vendor/jquery-flot/jquery.flot.js",
"app/vendor/jquery-flot/jquery.flot.pie.js",
"app/vendor/jquery-flot/jquery.flot.time.js",
"app/vendor/jquery-flot/jquery.flot.time.js",
"app/vendor/flot-axislabels/jquery.flot.axislabels.js",
"app/vendor/jquery-textcomplete/jquery.textcomplete.js",
"app/vendor/markitup/markitup/jquery.markitup.js"
"app/js/jquery.ui.git.js",