I just published a new package that makes it easy to make project burndown charts:
https://package.elm-lang.org/packages/avh4/burndown-charts/latest/
(It’s built on top of terezka/line-charts
– thanks, terezka!)
Here’s what it looks like (animated to show how you might update a project over time):
And here’s an example of the code:
import BurndownChart
import Time exposing (Month(..))
main : Html msg
main =
BurndownChart.view
{ name = "MVP"
, color = Just BurndownChart.blue
, startDate = ( 2019, Apr, 9 )
, baseline =
( ( 2019, Apr, 17 )
, BurndownChart.targetDate ( 2019, May, 14 )
)
, milestones =
[ ( "🐣", 21, Just ( 2019, Apr, 23 ) )
, ( "📝", 14, Just ( 2019, Apr, 30 ) )
, ( "\u{1F57A}", 12, Just ( 2019, May, 1 ) )
, ( "🏛", 0, Nothing )
]
, pointsRemaining = [ 8, 8, 7, 7, 7, 24, 24, 24, 24, 24, 21, 21, 20, 22, 22, 14, 12, 11, 11, 11, 10, 8, 8, 8, 8, 8, 8, 7, 1 ]
}
- Elm docs: https://package.elm-lang.org/packages/avh4/burndown-charts/latest/
- Announcement tweet: https://twitter.com/avh4/status/1130868596509356032
- Github page: https://github.com/avh4/burndown-charts/