Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
omega1234 #1
CF8 and cfchart problem
I could be wrong but it seems to me that coldfusion 8 never displays flash
charts when the name is specified, making it impossible to use charts within
cfforms.
ie - won't display:
<cfchart format="flash" show3d="yes" pieslicestyle="sliced"
labelformat="currency" name="testChart" title="Summary of Revenue">
<cfchartseries type="pie">
<cfchartdata item="a" value="50">
<cfchartdata item="b" value="100">
<cfchartdata item="c" value="100">
</cfchartseries>
</cfchart>
but will:
<cfchart format="flash" show3d="yes" pieslicestyle="sliced"
labelformat="currency" showmarkers="no" title="Summary of Revenue">
<cfchartseries type="pie">
<cfchartdata item="a" value="50">
<cfchartdata item="b" value="100">
<cfchartdata item="c" value="100">
</cfchartseries>
</cfchart>
omega1234 Guest
-
cfchart Problem
I am having a problem displaying all of the itemColumn values when I use the cfchart function. I am retreiving 10 records with a query, however on... -
CFChart Problem in MX 7
I am unable to get a single stacked bar to display using cfchart, but I can get multiple bars to display correctly. When I look at the chart, the... -
CFChart Pie problem
When creating a pie from a database query, if 2 or more adjacent slices are very small, say 1 or 2 percent, then the data labels will overlap each... -
CFCHART Problem
I have a few pages with flash charts and a java menu on the same page. I cannot find where to set the WMODE properties for the flash charts to make... -
CFCHART problem in CF7
My charts in CF7 are not showing all of my x-labels when they worked fine in CF6.1. The only way all the x labels appear in CF7 is when I increase... -
BKBK #2
Re: CF8 and cfchart problem
it seems to me that coldfusion 8 never displays flash charts when the name
is specified
Neither did Coldfusion MX7, perhaps not even earlier MX versions, either. It
is so by design. Paraphrasing the
[url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000226.htm[/url],
"[When you specify the name attribute, cfchart] generates the graph as
binary data and assigns it to the specified variable. [Specifying a name]
suppresses chart display. You can use the name value in the cffile tag to write
the chart to a file."
You could therefore simply extend your code, thus
<cftry>
<cfchart format="flash" show3d="yes" pieslicestyle="sliced"
labelformat="currency" name="testChart" title="Summary of Revenue">
<cfchartseries type="pie">
<cfchartdata item="a" value="50">
<cfchartdata item="b" value="100">
<cfchartdata item="c" value="100">
</cfchartseries>
</cfchart>
<!--- create directory if necessary --->
<cfif NOT directoryExists("c:\temp\test\")>
<cfdirectory action="CREATE" directory="c:\temp\test\">
</cfif>
<!--- write chart to file --->
<cffile action = "write" file = "c:\temp\test\test_chart.swf" output =
"#testChart#">
Chart has been written to c:\temp\test\test_chart.swf
<cfcatch type="Application">
error occurred: <cfoutput>#cfcatch.message#</cfoutput>
</cfcatch>
</cftry>
BKBK Guest
-
omega1234 #3
Re: CF8 and cfchart problem
Thanks, that's just what I needed. Should have read the docs more carefully.
omega1234 Guest
-



Reply With Quote

