Re: create arrays for GD::Graph::lines

2006-11-23 Thread Beginner
On 22 Nov 2006 at 17:35, Rob Dixon wrote: > Beginner wrote: > > On 22 Nov 2006 at 15:14, Beginner wrote: > >> > [snip] > >> > >> The number of years can vary so you might get data from 2006->1990. > >> > >> The data looks like it is suited to a hash but GD::lines wants the > >> data passed to in a

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Dr.Ruud
"Beginner" schreef: > On 22 Nov 2006 at 15:14, Beginner wrote: >> The data looks like it is suited to a hash but GD::lines wants the >> data passed to in as arrays references ([EMAIL PROTECTED]). That is one array >> with all the "ancode_n" and foreach code, an array of all the yearly >> values. I

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Beginner
On 22 Nov 2006 at 17:35, Rob Dixon wrote: > Beginner wrote: > > On 22 Nov 2006 at 15:14, Beginner wrote: > >> > [snip] > >> > >> The number of years can vary so you might get data from 2006->1990. > >> > >> The data looks like it is suited to a hash but GD::lines wants the > >> data passed to in a

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Rob Dixon
Beginner wrote: On 22 Nov 2006 at 15:14, Beginner wrote: [snip] The number of years can vary so you might get data from 2006->1990. The data looks like it is suited to a hash but GD::lines wants the data passed to in as arrays references ([EMAIL PROTECTED]). That is one array with all the "

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Rob Dixon
Beginner wrote: Hi, I am trying to create a line graph with GD::Graph::Lines. I have data being passed by CGI in the format: "ancode_1" = "ADV " "ADV_2006" = "117216 " "ADV_2005" = "104776 " "ancode_2" = "BAP " "BAP_2006" = "0 " "BAP_2005" = "270 " "ancode_3" = "BOO " "BOO_2006" = "

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Beginner
On 22 Nov 2006 at 15:14, Beginner wrote: > "ancode_1" = "ADV " > "ADV_2006" = "117216 " > "ADV_2005" = "104776 " > "ancode_2" = "BAP " > "BAP_2006" = "0 " > "BAP_2005" = "270 " > "ancode_3" = "BOO " > "BOO_2006" = "746854 " > "BOO_2005" = "673151 " > "ancode_4" =

create arrays for GD::Graph::lines

2006-11-22 Thread Beginner
Hi, I am trying to create a line graph with GD::Graph::Lines. I have data being passed by CGI in the format: "ancode_1" = "ADV " "ADV_2006" = "117216 " "ADV_2005" = "104776 " "ancode_2" = "BAP " "BAP_2006" = "0 " "BAP_2005" = "270 " "ancode_3" = "BOO " "B