First, you can't use cfchart inside of cfform, it's not a form tag.
However, if you want the chart inside of your form you can do it. Like
this (either as a flash or jpg):

<!--- Here starts the chart --->
<cfchart 
Name="myChart"
format="swf" 
chartheight="400"
chartwidth="700" showxgridlines="no" showygridlines="no" showborder="no"

fontbold="no" fontitalic="no"
labelformat="number"
xaxistitle="date"
yaxistitle="hits" rotated="no" sortxaxis="no" showlegend="no" 
showmarkers="no"
title="Daily Hits"
style="blue">
<cfchartseries type="bar" query="qHits" itemcolumn="VisitDate" 
valuecolumn="Hits"></cfchartseries>
</cfchart> 

<!--- write the chart to an image file --->
<cffile action="WRITE" file="myChart.swf" output="#myChart#" >

<cfform name="results" format="flash" width="800" height="600">
        <cfformitem type="html" height="400" width="700">
                <img src="myChart.swf" height="400" width="700">
        </cfform>
</cfform>

Hth,
---nimer



-----Original Message-----
From: Mark Drew [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 07, 2005 5:16 AM
To: CF-Talk
Subject: Re: CFCHART in CFFORM

Well.. I still havent been able to figure this out... so I am posting my

code to see if 
a) I am doing something wrong
b) there is a bug in CF

My code is as follows:

<cfform name="results" format="flash" width="800" height="600">
<cfformgroup type="tabnavigator">
<cfformgroup type="page" label="Log File">
<cfgrid name="logGrid" query="qLog" selectmode="row"></cfgrid>
</cfformgroup>
<cfformgroup type="page" label="Hits/Day" width="800" height="600">
<cfformitem type="html">
<!--- Here starts the chart --->
<cfchart format="png"
chartheight="400"
chartwidth="700" showxgridlines="no" showygridlines="no" showborder="no"

fontbold="no" fontitalic="no"
labelformat="number"
xaxistitle="date"
yaxistitle="hits" rotated="no" sortxaxis="no" showlegend="no" 
showmarkers="no"
title="Daily Hits"
style="blue">
<cfchartseries type="bar" query="qHits" itemcolumn="VisitDate" 
valuecolumn="Hits"></cfchartseries>
</cfchart> 
<!--- Here ends the chart --->
</cfformitem>
</cfformgroup>
</cfformgroup>

The first is just a grid that shows in the first tab
in the second tab I am trying to display a chart. The chart works fine 
outside of the CFFORM but if I put the chart in the form... nothing 
displays. I have tried doing it as flash etc.

Any ideas on at least how to debug this?

MD

On 05/07/05, Mark Drew <[EMAIL PROTECTED]> wrote:
> 
> Hi there
> I dont seem to be able to get a cfchart within a cfformgroup. I
> basically have a two tabs in a tabnavigator and in one of them I want
> to place a chart.
> 
> Is this not possible? or do I just have to seek errors in my code? 
> (which is minimal at the moment)
> 
> Thanks in advance
> 
> Mark Drew
> (and a belated happy 4th of july to you americans out there!)
> 
> 


-- 
Mark Drew




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211334
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to