cmkumar has asked for the wisdom of the Perl Monks concerning the following question:

The GD::Graph doc shows how to cumulate more than one dataset into a single column in a barchart by setting

cumulate => 1

But, I have 4 datasets say, A, B, C, D. I want datasets A and B cumulated (stacked on top of each other). Similarly, datasets C and D cumulated as well. The two stacked columns should appear next to each other. In other words, each X-axis value will have 2 columns, each column representing two datasets.

Is this possible using GD:Graph? If not, is there a workaround to get this done?

Thanks!

  • Comment on GD::Graph creating a clustered bar chart while some dataset are cumulative
  • Download Code

Replies are listed 'Best First'.
Re: GD::Graph creating a clustered bar chart while some dataset are cumulative
by huzefa52 (Novice) on Aug 27, 2013 at 13:50 UTC
    I want this type of graph http://ptm2.cc.utu.fi/ftp/network/WebGraphics/cdperldoc_html/ChartDirector/doc/cdperldoc/multistackbar.htm But it is paid, can we do same thing using GD:Graph