Fixing backlog graph, removing unnecesary sprint names
parent
f1c945c4df
commit
94193ea3cb
|
@ -793,8 +793,7 @@ tgBacklogGraphDirective = ->
|
||||||
redrawChart = (element, dataToDraw) ->
|
redrawChart = (element, dataToDraw) ->
|
||||||
width = element.width()
|
width = element.width()
|
||||||
element.height(width/6)
|
element.height(width/6)
|
||||||
milestones = _.map(dataToDraw.milestones, (ml) -> ml.name)
|
milestonesRange = [0..(dataToDraw.milestones.length - 1)]
|
||||||
milestonesRange = [0..(milestones.length - 1)]
|
|
||||||
data = []
|
data = []
|
||||||
zero_line = _.map(dataToDraw.milestones, (ml) -> 0)
|
zero_line = _.map(dataToDraw.milestones, (ml) -> 0)
|
||||||
data.push({
|
data.push({
|
||||||
|
@ -844,11 +843,13 @@ tgBacklogGraphDirective = ->
|
||||||
borderColor: '#ccc'
|
borderColor: '#ccc'
|
||||||
}
|
}
|
||||||
xaxis: {
|
xaxis: {
|
||||||
ticks: _.zip(milestonesRange, milestones)
|
ticks: dataToDraw.milestones.length
|
||||||
|
axisLabel: "Sprints"
|
||||||
axisLabelUseCanvas: true
|
axisLabelUseCanvas: true
|
||||||
axisLabelFontSizePixels: 12
|
axisLabelFontSizePixels: 14
|
||||||
axisLabelFontFamily: 'Verdana, Arial, Helvetica, Tahoma, sans-serif'
|
axisLabelFontFamily: 'Verdana, Arial, Helvetica, Tahoma, sans-serif'
|
||||||
axisLabelPadding: 5
|
axisLabelPadding: 15
|
||||||
|
tickFormatter: (val, axis) -> ""
|
||||||
}
|
}
|
||||||
series: {
|
series: {
|
||||||
shadowSize: 0
|
shadowSize: 0
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
"markitup": "~1.1.14",
|
"markitup": "~1.1.14",
|
||||||
"jquery-textcomplete": "yuku-t/jquery-textcomplete#~0.1.1",
|
"jquery-textcomplete": "yuku-t/jquery-textcomplete#~0.1.1",
|
||||||
"flot-orderBars": "emmerich/flot-orderBars",
|
"flot-orderBars": "emmerich/flot-orderBars",
|
||||||
|
"flot-axislabels": "markrcote/flot-axislabels",
|
||||||
"moment": "~2.6.0",
|
"moment": "~2.6.0",
|
||||||
"isMobile": "~0.3.1",
|
"isMobile": "~0.3.1",
|
||||||
"favico.js": "0.3.4",
|
"favico.js": "0.3.4",
|
||||||
|
|
|
@ -70,6 +70,8 @@ paths = {
|
||||||
"app/vendor/jquery-flot/jquery.flot.js",
|
"app/vendor/jquery-flot/jquery.flot.js",
|
||||||
"app/vendor/jquery-flot/jquery.flot.pie.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/jquery-flot/jquery.flot.time.js",
|
||||||
|
"app/vendor/flot-axislabels/jquery.flot.axislabels.js",
|
||||||
"app/vendor/jquery-textcomplete/jquery.textcomplete.js",
|
"app/vendor/jquery-textcomplete/jquery.textcomplete.js",
|
||||||
"app/vendor/markitup/markitup/jquery.markitup.js"
|
"app/vendor/markitup/markitup/jquery.markitup.js"
|
||||||
"app/js/jquery.ui.git.js",
|
"app/js/jquery.ui.git.js",
|
||||||
|
|
Loading…
Reference in New Issue