SunQuest
           ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 31st, 2004, 01:31 PM
JackSNVC JackSNVC is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 72 JackSNVC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 6 sec
Reputation Power: 5
using CFCHart

Hi there. I am using cfchart to show a dynamic pie graph using the cfquery tag to show demographics based no Race. I have like 9 white, 6 black, 3 hispanic, etc. but when I show the bar graph it just shows me 1, 2, 3, 4, 5, 6, 1-6 being the values assigned to each race. It doesnt add how many 1's there are and show that in a pie, here is my code. I tried looking for other examples is this a problem with my sql code?

jack

Code:
<cfquery name="race" datasource="vacancy">
select raceNum
from dbo.Flow_log
</cfquery>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<hr size="1" noshade>
<cfdump var="#race#" label ="Race Demographics">
<CFCHART SHOWBORDER="yes" show3d="yes"
 chartwidth="600" chartheight="400" pieslicestyle="sliced">
 <cfchartseries type="pie" query="race" itemcolumn="raceNum" valuecolumn="raceNum">
 
 </CFCHART>

</body>
</html>

Reply With Quote
  #2  
Old August 31st, 2004, 01:42 PM
JackSNVC JackSNVC is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 72 JackSNVC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 6 sec
Reputation Power: 5
got it ...

Kiteless u must hate my entries by now. See i get really frustrated and then all of the sudden after I have posted I think of ways to do stuff. well this is how i did it in case anyone wants to use cfchart in the future:

<cfquery name="race" datasource="vacancy">
select race, count(*) AS raceNum
from dbo.Flow_log
where racenum is not null
group by race
order by race;
</cfquery>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<hr size="1" noshade>
<cfdump var="#race#" label ="Race Demographics">
<CFCHART SHOWBORDER="yes" show3d="yes"
chartwidth="600" chartheight="400" pieslicestyle="sliced">
<cfchartseries type="pie" query="race" itemcolumn="race" valuecolumn="raceNum">

</CFCHART>

</body>
</html>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > using CFCHart


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway