stable

Clone or download

Read-only

request #21754 Grouped bar chart have inconsistent legend when data has None values

How to reproduce: have a tracker with 2 fields, one for source data (exemple date) the other for group by (exemple Severity) have some artifacts with values for date, and values|None for severity example: title | date | Severity aaa | 1-2 Juin | 1 bbb | 3-4 Mai | None ccc | 27-28 Avril | 3 ddd | 27-28 Avril | None eee | 1-2 Juin | 3 graph bar sould have its legend dispalyed regarding of date value, and not regarding None and date value Change-Id: I7d00b6e4bbedcf623c75278a68f9c9fc361c9291

Modified Files

Name
M plugins/graphontrackersv5/include/data-transformation/GraphOnTrackersV5_Chart_BarDataBuilder.class.php +170 −56 Go to diff View file
A plugins/graphontrackersv5/include/graphic-library/BarChartDataBuilder.php +133 −0 Go to diff View file
M plugins/graphontrackersv5/include/graphic-library/GraphOnTrackersV5_Engine.class.php +9 −0 Go to diff View file
M plugins/graphontrackersv5/include/graphic-library/GraphOnTrackersV5_Engine_Bar.class.php +7 −37 Go to diff View file
A plugins/graphontrackersv5/tests/Tuleap/GraphOnTrackersV5/DataTransformation/GraphOnTrackersV5ChartBarDataBuilderTest.php +279 −0 Go to diff View file
A plugins/graphontrackersv5/tests/Tuleap/GraphOnTrackersV5/GraphicLibrary/BarChartDataBuilderTest.php +118 −0 Go to diff View file