tracker issue : CF-4199659

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

Color issue in pie chart if value for last item in cfchartdata is set to 0

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): / ()

Created: 09/13/2017

Components: Charting/Graphing

Versions: 2016,11.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 302561 /

Priority/Frequency: Normal / Most users will encounter

Locale/System: /

Vote Count: 0

Suppose we have a pie chart with multiple cfchartdata items
Now if we make the value of the last cfchartdata as "0", the whole pie chart has just a single color whereas, it should have different colors for different cfchartdata based on the legend.
Example:

*Correct Behavior:*
<cfchart format="png" show3d="no" title="Sales Report"  width="325" height="325">
                <cfchartseries type="pie" datalabelstyle="value" colorlist="red,blue,green">
                                <cfchartdata item="2012" value="0">
                                <cfchartdata item="2013" value="9">
                                <cfchartdata item="2014" value="6">                               
                </cfchartseries>
</cfchart>

*Incorrect behavior:*
<cfchart format="png" show3d="no" title="Sales Report"  width="325" height="325">
                <cfchartseries type="pie" datalabelstyle="value" colorlist="red,blue,green">
                                <cfchartdata item="2013" value="9">
                                <cfchartdata item="2014" value="6">
                                <cfchartdata item="2012" value="0">
                </cfchartseries>
</cfchart>

All i have done is moved the cfchartdata with value 0 to the last position

Attachments:

Comments: