in reply to Re^6: GD::Graph creating a clustered bar chart while some dataset are cumulative
in thread GD::Graph creating a clustered bar chart while some dataset are cumulative

Hi Poj, that works for me, thanks. Now, I want 1 more graph with 3 stack bars. I have tried this by providing data in below format but its not working. Can u please help
my @data = ( ['Mar1','Mar2','Mar3','Apr1','Apr2','Apr3','May1','May2','May3], [1,0,2,0,4,0], [2,0,1,0,5,0], [0,3,0,3,0,6], [0,4,0,4,0,7], [3,0,4,0,5,0], [0,0,0,0,0,0], );
  • Comment on Re^7: GD::Graph creating a clustered bar chart while some dataset are cumulative
  • Download Code

Replies are listed 'Best First'.
Re^8: GD::Graph creating a clustered bar chart while some dataset are cumulative
by poj (Abbot) on Sep 11, 2013 at 10:01 UTC
    You need 9 data points, try
    my @data = ( ['Mar1','Mar2','Mar3','Apr1','Apr2','Apr3','May1','May2','May3], [1,0,0,2,0,0,4,0,0], [2,0,0,1,0,0,5,0,0], [0,3,0,0,4,0,0,6,0], [0,4,0,0,3,0,0,7,0], [0,0,5,0,0,6,0,0,1], [0,0,6,0,0,5,0,0,2], );
    poj
      Thanks a lot...