Opened 16 years ago
Closed 16 years ago
#4624 closed defect (fixed)
r5160 breaks burndown chart by making default line transparent
Reported by: | Jason Winnebeck | Owned by: | Joachim Hoessler |
---|---|---|---|
Priority: | normal | Component: | EstimationToolsPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
source:estimationtoolsplugin/trunk/estimationtools/burndownchart.py@5160#L11 was modified in r5160 to change the default value of color
from ff9900
to ff990000
. Based on the Google Charts Color API, the fourth hex pair adjusts the transparency, of which 00 is fully transparent. Therefore, no lines appear on the graph when using default color option.
For example:
[[BurndownChart(milestone=release, startdate=2009-02-02)]]
Will draw a graph with a completely transparent line.
[[BurndownChart(milestone=release, startdate=2009-02-02, color=FF0000)]]
Will draw a graph with a solid red line. Therefore, specifying a color always is a workaround.
The commit message says that the background was made transparent, but it appears that actually the line was made transparent and the background made solid opaque white.
Patch:
-
estimationtools/burndownchart.py
8 8 from trac.wiki.macros import WikiMacroBase 9 9 import copy 10 10 11 DEFAULT_OPTIONS = {'width': '800', 'height': '200', 'color': 'ff9900 00', 'bgcolor': 'ffffff', 'wecolor':'f1f1f1'}11 DEFAULT_OPTIONS = {'width': '800', 'height': '200', 'color': 'ff9900', 'bgcolor': 'ffffff', 'wecolor':'f1f1f1'} 12 12 13 13 class BurndownChart(WikiMacroBase): 14 14 """Creates burn down chart for selected tickets.
(In [5265]) The lines shouldn't be transparent, but the default background. Fixes #4624.