Modify

Opened 6 years ago

Closed 5 years ago

#4073 closed enhancement (fixed)

Show only workdays in burndown chart

Reported by: anonymous Owned by: 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 follow-up: Changed 6 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 6 years ago by anonymous

  • Summary changed from Show only workdays in burndownchart to Show only workdays in burndown chart

comment:3 Changed 6 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 6 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 6 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 6 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 6 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 5 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 5 years ago by hoessler

  • Resolution set to fixed
  • Status changed from new to closed

(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.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from hoessler. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.