tracker issue : CF-3756754

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

cfchart shows legend even when disabled by showlegend="false" in some cases

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Reto Aeberli / Reto Aeberli (Reto Aeberli)

Created: 05/07/2014

Components: Charting/Graphing

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: ALL / Win 2012 Server x64

Vote Count: 0

Listed in the version 11.0.03.292480 Issues Fixed doc
Problem Description:
cfchart shows the legend even when disabled by showlegend="false" in some cases. In my case I was able to nail it down to the existence of the attribute fontitalic. As soon this attribute is existing, true/yes or false/no, the legend appears. This is not expected and in earlier ColdFusion Versions this was working well. 

Steps to Reproduce:
create a cfml template with the following code and open it in the browser:
<cfchart fontitalic="no" showlegend="no">
    <cfchartseries type="pie">
        <cfchartdata item="New car sales" value="50000">
        <cfchartdata item="Used car sales" value="25000">
        <cfchartdata item="Leasing" value="30000">
        <cfchartdata item="Service" value="40000">
    </cfchartseries>
</cfchart>

Actual Result:
The chart shows a legend

Expected Result:
A chart without a legend

Any Workarounds:
If italic is not required remove the attribute entirely, but if Italic is needed there is no workarround.

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

Watson Bug ID:	3756754

Keywords:
FixTested


External Customer Info:
External Company:  
External Customer Name: Reto CENTINATED GmbH
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

I would expect that new CF Versions renders the charts as before. This is the third bug in just about an half hour I have encountered playing with CF11. Perhaps cfchart should introduce a version attribute like cfinvoke for axis to select the version of charting engine.
Comment by External U.
12258 | May 07, 2014 03:05:30 PM GMT
fontbold triggers the legend to appear too
Comment by External U.
12259 | May 07, 2014 03:22:25 PM GMT
Foregroundcolor also triggers the legend.
Comment by External U.
12260 | November 03, 2014 03:01:47 PM GMT
This isn't completely fixed in CF11 Update 3. Of <cfchart>'s 65 attributes, the "legend" attribute is the only attribute that still causes legend to be shown when showlegend="no". Repro: <cfset legend = {"shadow":true} /> <cfchart showlegend="no" legend="#legend#"> <cfchartseries type="pie"> <cfchartdata item="New car sales" value="50000"> <cfchartdata item="Used car sales" value="25000"> <cfchartdata item="Leasing" value="30000"> <cfchartdata item="Service" value="40000"> </cfchartseries> </cfchart> Thanks!, -Aaron
Comment by External U.
12261 | November 06, 2014 02:06:03 AM GMT
We are tracking this combination with a separate bug : CF-3848704 (Comment added from ex-user id:nawani)
Comment by Adobe D.
12262 | November 07, 2014 02:08:57 AM GMT
Hi Anuj, Thanks for creating CF-3848704. That is the only scenario where the legend is still shown when showlegend="no". The issue does not exist for the remaining 64 of <cfchart>'s 65 attributes (including fontitalic, fontbold, foregroundcolor) in the latest two CF11 Update 3 builds. Thanks!, -Aaron
Comment by External U.
12263 | November 20, 2014 11:20:36 PM GMT