score:2

Accepted answer

well, of course you end up one increment short, because you shift to a zero based index and multiply with that.

your first iteration is

ideal.push(idealincrement * 0);

robbing you of your first increment.

change

ideal.push(idealincrement * i);

to

ideal.push(idealincrement * (i+1));

and you should be able to go on with your current strategy. or, which is better to read, start your for loop at i=1 and go all the way up to totaldays, that works fine too. no need to start at 0 since you don't access the array index anywhere in that loop.

score:0

i think the logic in your code is solid. a burndown chart plots the work you should have at the end of the day for each day in a sprint, right? so if you set the first day to the full 148.5 you rob yourself of a days work. it should really start at 133.65 as that would be where you should be at the end of day 1.


Related Query

More Query from same tag