tracker issue : CF-3859531

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

CFChart style attribute errors when passing json string

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Neil Pugh / Neil Pugh (Neil Pugh)

Created: 11/30/2014

Components: Charting/Graphing

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final / CF11 Update5

Priority/Frequency: Major / All users will encounter

Locale/System: English / Windows 7

Vote Count: 0

Listed in the version Issues Fixed doc
Problem Description: If I pass in a valid json string (for ZingCharts) then I would expect to see a chart with this styling applied. Documentation states this should work: It just throw an incorrect error about the string not being a path.

Steps to Reproduce: Execute this line: <cfchart style='{"graphset":[{"background-color":"##ffffff"}]}'></cfchart>

Actual Result: Error thrown. "Could not locate the style file {"graphset":[{"background-color":"#ffffff"}]}."

Expected Result: a generated chart.

Any Workarounds: Put the json string into a .json file and enter a relative path to the file.

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

Watson Bug ID:	3859531

External Customer Info:
External Company:  
External Customer Name: drtyret
External Customer Email:  
External Test Config: My Hardware and Environment details: Windows 7. CF11 Update 3 Beta v2.



This worked in ColdFusion 9. Anyone using this feature in CF9 will have this as a bug once migrated to CF11.
Comment by External U.
9880 | November 30, 2014 04:43:49 PM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
9881 | February 20, 2015 09:23:40 AM GMT
I've tested this fix and appears to work without any regression. However if I pass invalid json then all that is returned is a null pointer exception error message, this is not helpful when trying to debug. A more helpful error message along the lines of "JSON passed to cfchart is invalid" should be returned.
Comment by External U.
9882 | February 28, 2015 07:38:24 AM GMT