Title:
CFCHARTSERIES Data Attribute Will Not Produce Pie Chart According to Documentation
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Paul Mascari / Paul Mascari (Paul Mascari)
Created: 08/05/2014
Components: Charting/Graphing
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 0
Problem Description:
Documentation for the "data" attribute of CFCHARTSERIES says this for pie charts: "This is an array of arrays.Specify the data as follows: ... {{[3,4]}} in case of pie charts." Trying to follow the documentation results in errors or unusable graphs.
Steps to Reproduce:
<cfset theData = {{[3,4]}}>
<cfchart name="chart_Data">
<cfchartseries type="pie" data="#theData#"></cfchartseries>
</cfchart>
Actual Result:
Error: "Invalid CFML construct"
Expected Result:
A pie chart with two slices of value 3 and 4.
Any Workarounds:
None. I cannot find the correct structure required for pie charts. Using "array of arrays" as the documentation says does not produce anything usable.
Such as
<cfset theData = [[3,5,6]]> will give a pie chart with no slices.
<cfset theData = [[3],[5],[6]]> produces 3 pie charts, no of which have slices.
Please fix or provide an example of the required format...preferably including data labels and colors.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3800311
External Customer Info:
External Company:
External Customer Name: sdsinc_pmascari
External Customer Email:
External Test Config: My Hardware and Environment details:
Win 2008 R2 64 bit, IIS7
Attachments:
- August 05, 2014 00:00:00: 1_1pie.PNG
- August 05, 2014 00:00:00: 2_2pies.PNG
- August 05, 2014 00:00:00: 3_3pies.PNG
- August 26, 2014 00:00:00: 4_badExample.PNG
Comments: