Solved

CGI question

Posted on 1997-07-30
6
181 Views
Last Modified: 2013-12-25
I am looking for a Unix-based graphing/charting program that will enable me to set up a website for a stockbrokerage company.  I would like to find a server-side product that will generate .GIF charts/graphs from input from a text-based data file.  This needs to be something that even the AOL netsurfers can view, so probably no java applets...  Any ideas?
0
Comment
Question by:transit
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:dmethvin
ID: 1829481
The problem with creating big graphs with GIFs is that they tend to be large and take a long time to download. For simple bar charts you could use stretched bitmaps inside tables. That works on the AOL 2.0 browser which has been out for about a year, and with table shading you can get some nice looking output. Here's an example of a horizontal bar chart comparing cats and dogs. (You need to create a small red and blue gif to make this work.)

<TABLE BGCOLOR="#FFE0FF">
<TR>
<TD>Cats</TD>
<TD><IMG SRC="red.gif" HEIGHT=5 WIDTH=120></TD>
</TR><TR>
<TD>Dogs</TD>
<TD><IMG SRC="blue.gif" HEIGHT=5 WIDTH=33></TD>
</TABLE>

There's another example at
http://www.winmag.com/web/tips/randtest.htm
that uses JavaScript.

Of course, if you need pie or line charts then reject this answer...
0
 

Author Comment

by:transit
ID: 1829482
Actually, I am looking for line graphs and more...

Good suggestions though!!

Thanks anyway!
0
 
LVL 5

Expert Comment

by:icd
ID: 1829483
I did something very similar to this for a bank intranet system. The solution I used there was to combine Tcl scripting language with GD a graphics library.

My preferred solution nowadays would be to get the GD extensions for Perl.

Although GD does not have any high level routines, mostly line drawing, polygon fills, simple text (only three standard fonts) I did develop it to produce some nice bar charts and pie charts for the bank.

Unfortunately I cannot let you have the source code (I don't even have it myself).

If this is the sort of thing you want then I can look up the URL for the perl version of GD. (Although most good perl resources should have a link to it).
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:transit
ID: 1829484
This is not a rejection!  Can you send me the URL for the Perl extensions to GD?

Also, how much programming did it take on your part?  Did you have to install GD on the server first?  Do you think that this would possibly work on a shared server (ISP)?

Thanks for your help, icd!
0
 
LVL 5

Accepted Solution

by:
icd earned 0 total points
ID: 1829485
The GD library can be found at:-

http://www.boutell.com/

I am not absolutely sure about how it is installed for perl, I believe there may be a way of using it without needing the webmaster to install it for you but I have had no experience with this on perl.

As for how much programming it took. It depends on how good you are! ISTR it took about 3 or 4 days or so programming to produce a library of routines that I could slot into any array of data.
0
 

Author Comment

by:transit
ID: 1829486
Thanks for the information!!!!

- transit
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now