Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Help with displaying graph
Hi,

I've written a script to read in a csv file, sort the data and then
display a chosen set of data in a table.  This works (though I could
probably have cleaner code - it's my first real script) so I wanted to
add a graph using GD::Graph::Lines.

The problems I have are :

1) How do I add my own data into the graph?  The test data is set up
with :

my @data = (['Fall 01', 'Spr 01', 'Fall 02', 'Spr 02' ],
[80, 90, 85, 75],
[76, 55, 75, 95]);

However, I tried to add my own using :

my @data = (@agentdate,
@agentincoming,
@teamincoming);

When I do this I start to get a 500 error saying "Premature end of
script headers"

2) How do I draw the graph and the table?

The graph uses :

print "Content-type: image/png\n\n";
print $myimage->png;

but I also want to print a table - how would I print both?

My script is at http://www.webeye.myby.co.uk/data.txt - it's quite long.

If anyone can make sense of my script, I'd really appreciate the help as
I've just spent 3 hours searching for an answer and I've not got much
hair left to pull out! :)

Thanks in advance to anyone who has an idea what I'm talking about! ;)
--
Dale - Liverpool, England

A menace to society - apparently!

Spam block:  Please don't mail me with "abuse" - use my name instead!

Report this thread to moderator Post Follow-up to this message
Old Post
Dale
04-25-05 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL CGI Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:27 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.