|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
||||
|
||||
|
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) |
|
#4
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > cfchart & cfchartseries |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|