tracker issue : CF-3850838

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

Pie chart vanishes when a single 100% item, even though others in data set with value 0

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Tom Chiverton / Tom Chiverton (Tom Chiverton)

Created: 11/12/2014

Components: Charting/Graphing

Versions: 2016,11.0,2018

Failure Type:

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

Priority/Frequency: Major / Some users will encounter

Locale/System: ALL / Linux All

Vote Count: 0

Problem Description:
When there are many values to put on a pie chart, but one comes out as 100%, the whole chart vanishes

Steps to Reproduce:
Run attached (rename to tc.cfml)

Actual Result:
no pie

Expected Result:
pie with a 100% segment

Any Workarounds:
nope

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

Watson Bug ID:	3850838

External Customer Info:
External Company:  
External Customer Name: ChivertonT
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

  1. November 13, 2014 00:00:00: 1_tc.bmp
  2. November 14, 2014 00:00:00: 2_missingPie-json.bmp
  3. November 14, 2014 00:00:00: 3_missingPie-cfml.bmp

Comments:

Execute tc.cfm after removing the attribute style="headerPieSyle.json" renders the pie chart as expected. Can you please try the same, or if style= headerPieSyle.json is causing this issue please attach headerPieSyle.json file. (Comment added from ex-user id:nawani)
Comment by Adobe D.
10140 | November 13, 2014 06:51:01 AM GMT
Sorry, I didn't realise the test required that file. Here is an updated test and it's style JSON file.
Comment by External U.
10141 | November 14, 2014 04:23:22 AM GMT
Appears to be ref-angle that causes it. At 61 the pie appears but 60 is a magic value and it vanishes.
Comment by External U.
10142 | November 14, 2014 04:28:44 AM GMT
Looks like it is because there is not enough space for the chart to appear after the legend gets its space. Since you have given a height in plotarea, and the engine is not able to get that much space, it fails to display anything. If you remove the height in plotarea, it will show up but will still be a small one. You will either have to sacrifice the legend or increase the dimensions of the chart (You can do that in cfchart tag).
Comment by Himavanth R.
10143 | November 25, 2014 01:10:50 AM GMT
showlegend="no" in cfchart tag, makes the chart working.
Comment by Anit K.
10144 | November 27, 2014 06:15:15 PM GMT
If your assessment is accurate about it being layout space related, how come changing ref-angle fixes it ? This doesn't change the amount of space required. Also, why was this resolved as not a bug ? Just because there is a workaround (draw your own legend for every pie chart just in case the data crashes the engine) doesn't mean it's not broken.
Comment by External U.
10145 | December 01, 2014 04:55:02 AM GMT
I didn't see any difference by changing the ref-angle. The moment i removed the specified width, it started showing up which is why i suggested that. There's too less space there to show any kind of chart though it's debatable whether to call it a bug or otherwise. I do agree it's not 100% not-a-bug. With regards to some other bugs, we did log third party bugs with the charting engine to dynamically adjust the size and margins for both charts and legends. (Case:10692 in particular) I am changing the reason to ThirdParty now.
Comment by Himavanth R.
10146 | December 01, 2014 06:52:09 AM GMT
We have logged this issue with ZingChart Case 10859: PNG and JPG charts does not render the pie chart when "ref-angle" is set to some values as 20, 40, 60, 80, though it shows the chart for other values. Closing the bug as deferred for now, will open and test the bug once the fix is available from ZingChart. (Comment added from ex-user id:nawani)
Comment by Adobe D.
10147 | December 05, 2014 02:11:03 AM GMT
we have exposed an attribute adjustLayout="false" in chart tag which is marked as true by default. Please make it false in your chart Tag to Fix this : adjustLayout="false"
Comment by Deepraj J.
31362 | May 13, 2019 07:57:37 AM GMT