tracker issue : CF-4198527

select a category, or use search below
(searches all categories and all time range)

cfchart ignores name arribute

| View in Tracker

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">
<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.



@Gary this is working fine in the latest update of CF2016, could you please apply the latest update of CF and check once. Please let us know if you still face this issue.
Comment by Dattanand M.
933 | June 01, 2017 09:56:34 AM GMT
@Gary please ignore my previous comment. As the issue exits when format="flash". Sorry for the confusion.
Comment by Dattanand M.
934 | July 21, 2017 06:36:20 AM GMT
Why has the Status and Reason been changed from "To Fix" and "Bug Verified" to "To Track" and "Third Party"? Please provide a comment to explain. This is a reproducible bug.
Comment by Gary F.
935 | July 26, 2017 07:38:37 AM GMT
@Gary  Marked "To Track" and "Third Party" as we are waiting for a fix from ZingChart for this issue.
Comment by Dattanand M.
29423 | August 02, 2018 09:49:25 AM GMT
|*Format*|*Rendering Side*| |flash|clientside| |html|clientside| |png|serverside| |jpg|serverside|   “name” attribute is supposed to contain binary value of result but this is not possible if rendering in on clientside. As user is trying with name=”flash” that is client rendering he can’t use name attribute.
Comment by Ajay R.
29445 | August 08, 2018 03:09:16 PM GMT
Till CF10 ZC was not being used for “format=flash”, it was server side rendering that why then it was working.
Comment by Ajay R.
29446 | August 08, 2018 03:11:36 PM GMT
Surely a Flash file is generated server side. Clients can't generate Flash, they can only receive it as a file from the server. Will there be a fix for CF 2016 please? It's been 16 months since I reported the bug. Thank you.
Comment by Gary F.
29468 | August 10, 2018 03:10:15 PM GMT
We checked this with ZingChart. Flash being client side is now a design limitation to get the name attribute with binary value of image.
Comment by Deepraj J.
29935 | November 15, 2018 08:10:44 AM GMT