Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>My other answer has to do with server configuration settings based on <em>if</em> you have blocked access to the CFIDE directory. Another approach would be to bypass that behavior by saving the generated chart yourself (a flash file .SWF) to the web server and then displaying that file instead.</p> <p>It's really easy with ColdFusion. Just add the <code>name</code> attribute to your <code>&lt;cfchart&gt;</code> tag. This will tell ColdFusion to store the binary chart data into the variable named with that attribute. Like this:</p> <pre><code>&lt;cfchart format="flash" name="chartname" chartwidth="575" chartheight="575" show3d="yes"&gt; &lt;cfchartseries type="pie" paintstyle="raise" seriescolor="blue" datalabelstyle="pattern"&gt; &lt;cfchartdata item="true" value="#rc.data.totaltruefalse.totaltrue#"&gt; &lt;cfchartdata item="false" value="#rc.data.totaltruefalse.totalfalse#"&gt; &lt;/cfchartseries&gt; &lt;/cfchart&gt; </code></pre> <p>In that code I have named the variable <code>chartname</code>. Next, write the data to a file with a .SWF extension. You need to write this file to a browsable directory on your server (like an images folder or some such). Like this:</p> <pre><code>&lt;cffile action="write" file="C:\webroot\images\mychart.swf" output="#chartname#" /&gt; </code></pre> <p>In that code I wrote the file <code>mychart.swf</code> to the <code>C:\webroot\images\</code> folder. It can be any directory you wish as long as it is accessible under your web root. The <code>output</code> attribute must match the variable name given in the <code>&lt;cfchart&gt;</code> tag's <code>name</code> attribute and must be within <code>#</code>.</p> <p>Next, include that SWF file in your HTML code. Like this:</p> <pre><code>&lt;OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,2,0" WIDTH="575" HEIGHT="575"&gt; &lt;PARAM NAME="movie" VALUE="/images/mychart.swf"/&gt; &lt;PARAM NAME="quality" VALUE="high"/&gt; &lt;PARAM NAME="bgcolor" VALUE="#FFFFFF"/&gt; &lt;EMBED src="/images/mychart.swf" quality="high" bgcolor="#FFFFFF" WIDTH="575" HEIGHT="575" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"&gt; &lt;/EMBED&gt; &lt;/OBJECT&gt; </code></pre> <p>In that code the <code>value</code> attribute of the <code>&lt;param&gt;</code> tag and the <code>src</code> attribute of the <code>&lt;embed&gt;</code> tag must match the location of the written .SWF file above (the images folder in this example).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload