in reply to Re: Issues graphing multiple data sets on the same graph in GD::Graph
in thread Issues graphing multiple data sets on the same graph in GD::Graph
If you only see one data set, it is most likely that you are missing the x-axis data. If you go look at the example I posted previously, the @data contains 3 array references. The first is the x-axis data, the following two are the actual plot data. So you are missing an arrayref somewhere. Sorry thats all I can see, because your code is not runnable by me, to test.
@date = ""; @totals = ""; ..... ........ @data = ( [@date], # this is the x-axis data [@totals], # first plot [@totals1] # this gives the second plot );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Issues graphing multiple data sets on the same graph in GD::Graph
by SoaponaRope (Novice) on Nov 13, 2007 at 14:42 UTC |