I have done it like this:

 

    <cfchart name="myChart" format = "png" 

        dataBackgroundColor = "###request.color_background#" 

        showBorder = "no" showLegend = "no" chartWidth="220"
chartHeight="270" pieslicestyle="sliced" style="piechart.xml">

        <cfchartseries 

      type="pie"

      query="graph_query"

          itemcolumn="swstatus"  valuecolumn="numrecs" paintStyle="light"
colorlist="#colorList#">

        </cfchartseries> 

    </cfchart> 

    

    <cfset tmpNewName = "graph#GetTickCount()#.png" />

    <cffile action="write" file="#request.dir#data\graphs\#tmpNewName#"
output="#myChart#" nameconflict="overwrite">

    <cfoutput><img
src="http://#cgi.server_name#data/graphs/#tmpNewName#";></cfoutput>

 

This is old so it could possibly be done more elegantly now but it works.

 

From: [email protected] [mailto:[email protected]] On Behalf
Of [email protected]
Sent: Tuesday, 22 March 2011 10:19 AM
To: [email protected]
Subject: [cfaussie] CFChart and emailing

 

Hi,

 

I have a page that generates some statistical tables and then under each
table displays the statistics graphically using cfcharts

 

Problem I have is trying to send the page as an email or even copy and past
the graph into an email the graph then displays a message that the content
has timed out and to refresh the page.

 

Is it possible to have the cfchart data as image files as they are created
anthen reference said files in a cfmail  tag ???

 

Suggestions or comments regarding being able to email cfcharts would be
appreciated

 

regards claude

 

-- 
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

Reply via email to