tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandros Kotsiras" <kotsi...@mediaondemand.com>
Subject RE: Chart Generation?
Date Fri, 02 Jun 2000 19:46:24 GMT
In case you are only interested in BAR-CHART you can use plain HTML and the
<img tag.
Create a spacer.gif in the color of your choice and then while you are
looping through your DB results
pass the DB value to the width attribute of the spacer as :
<table>
  while(rs.next())

    <TR>
       <TD>
         <img src="spacer.gig" height="10" width="<%=
rs.getString("COLUMN_NAME") %> >
       </TD>
    </TR>
  }
</table>
It will create a HORizontal bar chart very nice and easy.

Of course if you want PIES/GRAPHS you cannot do it with HTML.

-----Original Message-----
From: Rogério Meneguelli Gatto [mailto:gatto@softdes.com.br]
Sent: Friday, June 02, 2000 2:49 PM
To: tomcat-user@jakarta.apache.org
Subject: Chart Generation?


Hello there,

What are you guys using for chart generation? What "architecture" are you
using? Applet rendering or image generation (like in <IMG SRC="...>)?

TIA,
Rogério Gatto

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message