The following code worked for me but you will need to format the image size:
<cfdocument overwrite="yes" format="pdf">
<cfchart format="jpg" seriesplacement="default" labelformat="number"
show3d="yes" tipstyle="mouseOver" pieslicestyle="solid">
<cfchartseries type="pie">
<cfchartdata item="New car sales" value="50000">
<cfchartdata item="Used car sales" value="25000">
<cfchartdata item="Leasing" value="30000">
<cfchartdata item="Service" value="40000">
</cfchartseries>
</cfchart>
</cfdocument>
Raymond Camden wrote:
> I believe you will need to set cfhchart to return a png or jpg, then
> use the NAME feature to return the binary data. Save that - and link
> to it using normal HTML.
>
> On 10/12/06, Juman Lop <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> Con you guy please help me to display a simple cfchart using cfdocument?
>> This is my currently code:
>> --------------------------------------------
>> <cfdocument overwrite="yes" format="pdf" filename="c:\test.pdf">
>>
>> <cfchart show3d="yes" pieslicestyle="solid">
>> <cfchartseries type="pie">
>> <cfchartdata item="New car sales" value="50000">
>> <cfchartdata item="Used car sales" value="25000">
>> <cfchartdata item="Leasing" value="30000">
>> <cfchartdata item="Service" value="40000">
>> </cfchartseries>
>> </cfchart>
>>
>> <img src="try.gif" width="52" height="84" />
>>
>> </cfdocument>
>> ----------------------------------------------
>> The pdf dosn't display chart, it only display try.gif image.
>>
>>
>> Thanks,
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256648
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4