Modify

Opened 16 years ago

Closed 16 years ago

#4073 closed enhancement (fixed)

Show only workdays in burndown chart

Reported by: anonymous Owned by: Joachim Hoessler
Priority: normal Component: EstimationToolsPlugin
Severity: normal Keywords: burndown
Cc: Trac Release: 0.10

Description

Hi,

it would be nice to have a burndown chart which shows only workdays. Usually I plot the graph only for the days the team is working (ignoring Saturdays and Sundays) to get a graph without visual "gaps".

How about a new INI setting:
burndown_days = mo,tu,we,th,fr (default setting is shown here)

Hope you like the idea, MMM

Attachments (0)

Change History (9)

comment:1 Changed 16 years ago by anonymous

Hi again, I made a patch for Trac 0.10 with the following additions to the burndown chart macro. It can be dynamically configured instead of an INI file setting, I thought different teams may want different configurations.

  • weekends: show weekends in chart, 0 or 1 (defaults to 1)
  • expected: show expected hours in chart, 0 or any number to define expected hours (defaults to 0).
  • gridlines: show gridlines in chart, 0 or any number to define hour steps (defaults to 0)
  • colorexpected: color for expected hours graph specified as 6-letter string of hexadecimal values in the format RRGGBB. Defaults to ffddaa, a nice yellow.

Additionally the bottom label is more compact, month and year are one line now (i.e. 11/2008). Joachim I am going to send you an email later... maybe you like the changes and we can merge them.

comment:2 Changed 16 years ago by anonymous

Summary: Show only workdays in burndownchartShow only workdays in burndown chart

comment:3 Changed 16 years ago by anonymous

Looks like the 0.10 branch has not the latest fixes (such as [4703] to treat closed tickets as 0 hours remaining).

comment:4 in reply to:  1 Changed 16 years ago by anonymous

Hi, I'm really interested for having your version. Netherless I'm using Trac 0.11. Do you think I can use your patch on this version?? And where can I find it? Thanks

Replying to anonymous:

Hi again, I made a patch for Trac 0.10 with the following additions to the burndown chart macro. It can be dynamically configured instead of an INI file setting, I thought different teams may want different configurations.

  • weekends: show weekends in chart, 0 or 1 (defaults to 1)
  • expected: show expected hours in chart, 0 or any number to define expected hours (defaults to 0).
  • gridlines: show gridlines in chart, 0 or any number to define hour steps (defaults to 0)
  • colorexpected: color for expected hours graph specified as 6-letter string of hexadecimal values in the format RRGGBB. Defaults to ffddaa, a nice yellow.

Additionally the bottom label is more compact, month and year are one line now (i.e. 11/2008). Joachim I am going to send you an email later... maybe you like the changes and we can merge them.

comment:5 Changed 16 years ago by anonymous

Here please a temporary link to the patched source. I merged the changes to treat closed tickets as 0 hours and fixed the HoursRemaining macro to behave the same way.

http://www.piratson.se/archive/estimationtools_branch10_patched1.zip

Examples:

[[BurndownChart(milestone=Sprint 1, startdate=2008-11-10, enddate=2008-11-21, 
  weekends=0, width=400, height=200, color=ff0000)]]

[[BurndownChart(milestone=Sprint 1, startdate=2008-11-10, enddate=2008-11-21, 
  expected=200, weekends=0, gridlines=25, width=400, height=200, 
  color=ff0000, colorexpected=888888)]]

First chart example ignores weekends, the second shows expected hours and real hours (Scrum burndown style).

comment:6 Changed 16 years ago by anonymous

Here is an updated patched source, burndownchart.py:scale_data() removed too many days.

http://www.piratson.se/archive/estimationtools_branch10_patched2.zip

comment:7 Changed 16 years ago by anonymous

Here is an updated patched source, still one day too much has been removed. http://www.piratson.se/archive/estimationtools_branch10_patched3.zip

comment:8 Changed 16 years ago by anonymous

One more update, shorter URL by using values with less digits after comma.
http://www.piratson.se/archive/estimationtools_branch10_patched4.zip

comment:9 Changed 16 years ago by Joachim Hoessler

Resolution: fixed
Status: newclosed

(In [5358]) Integrated changes as proposed by Mark Seuffert in #4073. This fixes #4073, and additionally adds gridlines and expected progress to the burndown chart. Also, the bottom label is more compact now.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Joachim Hoessler.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.