tracker issue : CF-4193936

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

Difference in color while using HTML and PNG if the value of the last item cfchartdata is set to 0

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): / ext-user (Sandip Halder)

Created: 09/28/2016

Components: Charting/Graphing, Server

Versions: 2016,11.0,2018

Failure Type:

Found In Build/Fixed In Build: 298513 / CF2016U12,CF2018U5

Priority/Frequency: Critical / Most users will encounter

Locale/System: English / Linux All,Mac 10 All,Solaris All,Win XP All

Vote Count: 0

Listed in the version 2016.0.04.302561 Issues Fixed doc
Problem: When the chart is in HTMl format the color difference is okay but when we use png the color difference is not correct. 

Method: Please run the code snippet attached to view the difference. 

Result: Color render is not correct in PNG as it is in HTMl format

Expected: 

Workaround:

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

Watson Bug ID:	4193936

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

Attachments:

Comments:

The issue here is not as the bug title says, the actual issue is last item in cfchartdata is set to 0 then the chart comes up in single color. This issue is tracked in the bug #CF-4199659.
Comment by Dattanand M.
1721 | September 13, 2017 09:04:26 AM GMT
This problem still has not been fixed. I just installed ColdFusion 2018 and the divide by 0 still exists if you are using a JPG type. It has been over 2 years since I first reported this problem.
Comment by Robert S.
29299 | July 12, 2018 09:10:00 PM GMT
@Robert : Could you please share with us the log file and the code with which you are hitting "divide by 0" error.
Comment by Dattanand M.
29301 | July 13, 2018 10:09:45 AM GMT