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:
Dell PowerEdge Servers
  #1  
Old November 3rd, 2004, 12:34 AM
donboe donboe is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 4 donboe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
cfchart & cfchartseries

Hi all

I'm new to this forum and realy hope somebody can and is willing to help me.

I try to make charts with the cfchart & cfchartseries tags.

To make a start I used the turorial from Ben Forta on
http://www.informit.com/articles/article.asp?p=31574

But everything is going wrong from the beginning.
The following part of the script is from the beginning from the tutorial and should show an empty chart:
Code:
<cfchart showborder="yes"
 chartheight="300" 
 chartwidth="400"
 yaxistitle="Projected Population (Millions)" 
 xaxistitle="Year">
 <cfchartseries type="line" serieslabel="United States">
 </cfchartseries>
</cfchart>

But even that is not working as you can see in the example I made:
http://www.testfolder.com/test.cfm

Does somebody see what i'm doing wrong, or what is wrong in the script.

Thanks in advance

Reply With Quote
  #2  
Old November 3rd, 2004, 07:58 AM
neosenate neosenate is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: York, UK
Posts: 22 neosenate User rank is Private First Class (20 - 50 Reputation Level)neosenate User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 8 h 2 m 57 sec
Reputation Power: 0
This particular error

Code:
 Query not found: expenses
 
The error occurred in /home/httpd/vhosts/testfolder.com/httpdocs/test.cfm: line 9

7 : <body bgcolor="#FFFFFF" text="#000000">
8 : <cfchart format="flash" chartheight="300" chartwidth="500" showborder="yes" show3d="yes" tipstyle="mouseOver" pieslicestyle="sliced">
9 :  <cfchartseries type="pie" query="expenses" itemcolumn="expenseType" valuecolumn="expense" />
10 :  </cfchart>
11 : 


means that you are trying to chart the data of a query that doesn't exist. CFchart and CFcharseries usually work by plotting the results of a particular query, but you can also hard-code the values in. The best place to know how CFchart works is by visiting here


Hope that helps out a little

If it doesn't post back and I'll try to help some more

Reply With Quote
  #3  
Old November 4th, 2004, 06:59 AM
Alas's Avatar
Alas Alas is offline
Wickedwd.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: wickedwd.com
Posts: 182 Alas Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 16 h 41 m 17 sec
Reputation Power: 0
Thumbs up Here ya go

Code:
<CFCHART
  CHARTWIDTH="530"
  CHARTHEIGHT="200"
  YAXISTITLE="Alas"
  XAXISTITLE="IsthaMan"
  SHOW3D="Yes"
  XOFFSET=".03"
  YOFFSET=".06"
  FOREGROUNDCOLOR="003366"
  DATABACKGROUNDCOLOR="silver">


    
  <CFCHARTSERIES 
    TYPE="bar"
	SERIESCOLOR="navy"> 
	
	<cfchartdata item="Beer" value="500">
	<cfchartdata item="Games" value="500">
	<cfchartdata item="Gas" value="500">

  </CFCHARTSERIES>


</CFCHART>


There ya go all done, just change the 500's to the number you want. If you want to add more items just add another cfchardata item. Hope that helps.

-Alas (still tha Man)

Reply With Quote
  #4  
Old November 4th, 2004, 08:25 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,488 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 18 h 10 m 11 sec
Reputation Power: 42
Alas, the problem with that is that it is manually inseting individual data points into the chart one by one. From the poster's question, it seems like they want to populate it with a query, which is indeed possible with CFCHART (assuming the query exists of course).
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > cfchart & cfchartseries


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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