Status/Resolution/Reason: Closed/Won't Fix/DesignLimitation
Reporter/Name(from Bugbase): Gary Fenton / Gary Fenton ()
Created: 04/17/2017
Components: Charting/Graphing
Versions: 2016,11.0,2018
Failure Type: Non Functioning
Found In Build/Fixed In Build: Update 3 /
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Win 2012 Server x64
Vote Count: 0
Throws an error "variable chart1 is undefined" when the NAME attribute has been provided for a flash or html chart. If the variable is not referenced after cfchart then the chart is immediately displayed on the page rather than being supressed which is what it's supposed to do when a name has been specified in cfchart. The code works in production in CF8, we've just upgraded to 2016 where it fails. The new documentation has not indicated it should work any differently.
Steps to Reproduce:
<cfchart format="flash" name="chart1" chartheight="300" chartwidth="500">
<cfchartseries type="pie">
<cfchartdata item="Queued" value="30">
<cfchartdata item="Success" value="64">
<cfchartdata item="Busy" value="5">
<cfchartdata item="Failed" value="9">
</cfchartseries>
</cfchart>
<cfdump var="#chart1#">
Actual Result: Error 500 - "variables chart is undefined". If you remove the cfdump line then the chart is displayed, even though it's not intended to when the name attribute is provided.
Expected Result: Binary representation of the chart is output in cfdump.
Attachments:
Comments: