Contents
Burn Down Chart Parser
Description
The burn down chart parser allows you to have a burn down chart as used in Scrum rendered nicely inside a wiki page. It uses the google chart api to actually build the chart.
Download & Release Notes
Get the latest version from svn
Installation
For general installation instructions, see ParserMarket/InstallingParsers. This parser requires no special dependencies, such as outside Python libraries.
Usage
See this blog post for a detailed description.
Example
{{{#!BurnDownChart 07.|0|54 08.|8|60 09.|12|59 12.|15|58 13.|20|55 14.|22|55 15.|-1|-1 16.|-1|-1 ... }}}
Copyright
(c) Thorsten Busse
License
This parser is released under the terms of the GNU GPL.
Discussion
I like this feature very much, but I wanted charts to resize with the browser and not to impose a fixed width chart on visitors. Also, I wanted to display the real value next to the percentage in my charts. To implement those changes I made two small modifications to the code. First, I set the table width to 90%,
<table width='90%' class='graph' cellspacing='6' cellpadding='0'>
and then rewrote the code drawing the bars as follows,
<td width='%(width1)s'>%(name)s</td><td width='%(width2)s' class='bar'><div style='width: %(value)s'></div>%(value)s %(value2)s</td></tr>""" % { "width1": '25%', "width2": '75%', "name": name, "value": str(round((float(value)/sum) * 100, 1))+'%', "value2": '('+str(value)+')', }
where width1 and width2 set the 1st (names) and 2nd (values) column width, and value2 is used to display the actual value in parentheses after the percentage.
- please see r371. It embeds the chart in a div tag. So it does not destroy the page layout anymore. Thanks for the idea!