in reply to GD::Graph creating a clustered bar chart while some dataset are cumulative
Is this possible using GD:Graph?
No. There is no facility in the module for that.
If not, is there a workaround to get this done?
A work-around would be to give datasets A & B different X values to datasets C & D and use custom labels to tie them together.
Ie. If (say) for April the values were: a(4,10), b(4,12), c(4,3), d(4,7) then adjust them so that they become a(3.75,10),b(3.75,12), c(4.25,3), d(4.25,7).
That way, with cumulate enabled you should get:
25| | 20| B | B 15| B | B 10| A D | A D 5| A D | A C 0+------------------------------------------------- 1 2 3 4 5 6 7 8 9 10 11 12
Update: For hbar graphs it would be the Y values you adjust.
|
|---|