radekstepan / burnchart

GitHub Burndown Chart as a Service

Home Page:https://burnchart.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: burnup chart?

StevenACoffman opened this issue · comments

Hi! I have used and loved this already, but I was curious if there was any interest in supporting burn-up charts?

A burn-down chart shows the amount of work remaining on a project (the remaining effort), whereas a burn-up chart shows how much work has been completed and the total scope of the project.

The problem I have is that my projects end up having some scope increases as we discover unplanned work, and the burn-down chart tends to look weird (work completed in a sprint can be more than cancelled out by scope increase appearing as negative progress).

Hi @StevenACoffman and glad you are liking it! I don't have time to add the feature myself but I can point you in the right direction.

Basically, what you'd want to do is to modify config and add something like "burnup": false (to default to burndown).

Then here you would start with 0:

https://github.com/radekstepan/burnchart/blob/master/src/js/modules/chart/lines.js#L17

Here you would be adding to the current total rather than subtracting:

https://github.com/radekstepan/burnchart/blob/master/src/js/modules/chart/lines.js#L31

And then do the same for the ideal line:

https://github.com/radekstepan/burnchart/blob/master/src/js/modules/chart/lines.js#L86-L88

Hope it helps and if you have a PR going I'd be happy to review and merge.