Skip to content

Instantly share code, notes, and snippets.

@WagnerMoreira
Last active January 2, 2016 14:49
Show Gist options
  • Save WagnerMoreira/8319343 to your computer and use it in GitHub Desktop.
Save WagnerMoreira/8319343 to your computer and use it in GitHub Desktop.
Burndown Chart das expectativas de Expectativa X Realidade de pontos da sprint
//2 séries
// -> Expectativa de pontos
// -> Realidade de pontos feitos
// 1 Categoria com os dias da sprint
$(function () {
$('#container').highcharts({
title: {
text: 'Burndown Chart',
x: -20 //center
},
subtitle: {
text: 'Source: WorldClimate.com',
x: -20
},
xAxis: {
categories: ['01/12', '02/12', '03/12', '04/12', '05/12', '06/12',
'07/12', '08/12', '09/12', '10/12']
},
yAxis: {
title: {
text: 'Total de pontos por dia da sprint'
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
valueSuffix: '°C'
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: [{
name: 'Expectativa de pontos entregues',
//fator = total de pontos / total de dias da sprint
data: [250 (total de pontos - fator), 225 (total de pontos anterior - fator), 200, 175, 150, 125, 100, 75, 50, 25]
}, {
name: 'Realidade de pontos entregues',
data: [250 (total de pontos - total de pontos feitos no dia), 240 (total de pontos anterior - total de total de pontos feito no dia), 210, 200, 190, 100, 90, 90, 80, 75]
}]
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment