Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visualisation ideas /charts/???

Status
Not open for further replies.

Leon1977

IS-IT--Management
Jun 27, 2001
79
BG
Any idea how could I draw a chart from database values within ColdFusion web pages
 
If you're using ColdFusion MX, you can simply use the <CFCHART> series of built-in tags.

If you're on 5.0 or below, I believe there are a couple of custom tags on the Macromedia developer exchange gallery that'll do it for it.

Or, if you're after a simple bar chart, you can simply use colored table cells or dynamically size an image:

Code:
<CFSET myData = &quot;1,2,3&quot;>

<CFLOOP index=&quot;whichBar&quot; list=&quot;#myData#&quot;>
   <CFSET scaledData = whichBar * 10>
   <CFOUTPUT><IMG SRC=&quot;barline.gif&quot; height=&quot;10&quot; width=&quot;#scaledData#&quot;>&nbsp;<b>#whichBar#</b><br /></CFOUTPUT>

</CFLOOP>


Hope it helps,
-Carl
 
ahh.. I see. best bet is probably the make-your-own-with-tables-route.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top