tracker issue : CF-3812163

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

Charting : Passing json file name as style attribute does not show the chart

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Anuj Nawani)

Created: 08/26/2014

Components: Charting/Graphing, Server

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 290757 /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win XP All

Vote Count: 0

Listed in the version 11.0.03.292480 Issues Fixed doc
font.xml:
<?xml version="1.0" encoding="UTF-8"?><frameChart is3D="false"><title font="Arial-20" placement="Bottom"  foreground="white" background="black">title text</title></frameChart>

font.json generated from font.xml using cfchart_xmltojson.bat:
{"graphset":[{"plotarea":{},"title":{"position":"50% 100%","text":"title text","color":"white","layout":"1x","font-size":"20","background-color":"#000000","font-family":"Arial"}}]}

<!--- Using font.xml as input to style attribute --->
test.cfm:
<cfchart style="font.xml" >
<cfchartseries>
	<cfchartdata item="English" value="100">
	<cfchartdata item="Science" value="200">
	<cfchartdata item="Math" value="300">	
	<cfchartdata item="History" value="400">
</cfchartseries>
</cfchart>
This renders chart with data given as input to the chart

<!--- Using json file font 
test.cfm:
<cfchart style="font" >
<cfchartseries>
	<cfchartdata item="English" value="100">
	<cfchartdata item="Science" value="200">
	<cfchartdata item="Math" value="300">	
	<cfchartdata item="History" value="400">
</cfchartseries>
</cfchart>

Chart is not rendered, just title text is shown.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3812163

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

This isn't fixed in CF11 Update 3 (11,0,03,292024(PreRelease)). The <cfchart style="font.json"> still does not render. And I assume <cfchart style="font" > (no '.json' extension) was a typo? Thanks!, -Aaron
Comment by External U.
11223 | November 09, 2014 05:26:14 AM GMT
Is .json a registered MIME type on your server? What happens if you change it to .cfm or .txt?
Comment by External U.
11224 | November 09, 2014 02:08:15 PM GMT
cfchart_xmltojson.bat file is changed as part of this fix. The old json will not work, user has to generate the new json file by passing the xml file to cfchart_xmltojson.bat. (Comment added from ex-user id:nawani)
Comment by Adobe D.
11225 | November 10, 2014 01:06:04 AM GMT
Thanks very much for that help Stephen. Anuj, you are right, I just now ran this ticket's font.xml thru cfchart_xmltojson.bat and it generated a more verbose font.json than the one in the ticket and this ticket's example then worked. So, verified this ticket is fixed in CF11 Update 3 (11,0,03,292024(PreRelease)). =) Thanks!, -Aaron
Comment by External U.
11226 | November 10, 2014 03:10:49 AM GMT