Re: Making graphics

From: Date: Fri, 12 Apr 2002 03:07:00 +0000
Subject: Re: Making graphics
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92704@lists.php.net to get a copy of this message
Hmmmm, I didn;t know you wanted to animate anything... but this could be achieved through CSS/DHMTL. And if you're going that way, the images themselves could be replaced with dynamically sized DIVs. DHTML isn't my thing though... check out some CSS newsgroups, and of course be prepared for lack of browser support of DHTML :) Justin French -------------------- Creative Director http://Indent.com.au -------------------- on 12/04/02 12:54 PM, Ian (ian.ferger@solveris.com) wrote: > how do you then animate that? > ----- Original Message ----- > From: "Justin French" <justin@indent.com.au> > To: "Ian" <ian.ferger@solveris.com> > Sent: Thursday, April 11, 2002 7:29 PM > Subject: Re: [PHP] Making graphics > > >> If you take a single coloured pixle (1x1), you can stretch it to any size >> via <IMG>'s height and width attributes. No GC, no PHP, no JavaScript!! >> >> <? >> $bar1height = 80; >> $bar2height = 25; >> $bar3height = 49; >> ?> >> <IMG SRC="blue.gif" height="<?=$bar1height?>" >> width="20"> >> <IMG SRC="green.gif" height="<?=$bar2height?>" >> width="20"> >> <IMG SRC="red.gif" height="<?=$bar3height?>" >> width="20"> >> >> >> This would produce a three bar graph, and with the use of align and > perhaps >> tables, they could be arranged into a reasonable graph representation > using >> tiny images, and virtualy no server-side programming. >> >> The height vars could be established via PHP calculations, values for a >> table, etc etc. >> >> >> Justin French >> -------------------- >> Creative Director >> http://Indent.com.au >> -------------------- >> >> >> >> >> on 12/04/02 3:56 AM, Ian (ian.ferger@solveris.com) wrote: >> >>> modifying the width or height of an image in javascript works well > also....i >>> cant imagine why youd want to do this serverside.... >>> >>> >>> "Christoph Starkmann" <kiko@nfq.de> wrote in message >>> news:B120D7EC8868D411A63D0050040EDA77111BEE@XCHANGE... >>>> Hi Ron! >>>> >>>>> Here is what I want to do..... >>>>> >>>>> I am taking a poll and I would like to display the results in >>>>> a bar graph >>>>> format. What is the best way to do this.....hopefully you >>>>> will not say GD >>>>> library! >>>> >>>> If you don't like GD, why not try Flash instead? ;)) >>>> >>> >>> >

« previous php.general (#92704) next »