You are here: Re: Chart-script « PHP Programming Language « IT news, forums, messages
Re: Chart-script

Posted by Malcolm Dew-Jones on 09/26/05 23:11

langhammer@gmail.com wrote:
: Hi,

: anybody knows a good class who makes possible to create charts as
: line-graph ?

: Mostly I can find only classes to include with more as 50kilobytes. But
: I need a small programm, because I have 750 users in one moment.

: The most classes includes pie,circles,... so they are to big.

Not clear what you have tried.

Do you mean a php class to create a gif/jpeg/etc image of a chart?
Or a Java class for an applet to display on the browser.
Or a Javascript class to do whatever it does.

Read up on gnuplot. It can create all sorts of graphs and output various
output formats. Being a compiled program it is fast to run. Since it
runs as a standalone program (i.e. not part of your application) then
there are no GPL licensing issues.

Display the graph as an image ( <img src="a-script.phgp" /> ). The php
script needs input which I don't show, either query params or session
data. Your php script will accept the input and prepare the gnuplot data
(typically just a few lines in a text file). Then your php shells out to
gnuplot with that as its input, gnuplot generates the binary image data
you need. I don't recall if gnuplot displays that data on stdout (in
which case you need do nothing) or whether you have to spool a work file,
but either way is pretty easy.


--

This programmer available for rent.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация