I have tried the below code for creating report in ColdFusion, but it gives failure like in the screenshot,
<cfchart format="png" name="chartImage">
<cfchartseries type="bar" query="chart" itemcolumn="title" valuecolumn="level">
</cfchart>
<cfset chartImageFile = getTempDirectory() & '\' & createUUID()>
<cfset fileWrite(chartImageFile, chartImage)>
<cfreport format="pdf" template="report.cfr" name="grid">
<cfreportparam name="reportTitle" value="#reportType.title#">
<cfreportparam name="chartImage" value="#chartImageFile#">
</cfreport>
<cfset fileDelete(chartImageFile)>