Opened 9 years ago

Closed 9 years ago

#16376 closed defect (fixed)

Error in the Pie Legend for zero or negative values

Reported by: tsemachh Owned by: cjolif
Priority: undecided Milestone: 1.9
Component: Charting Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:


There was : However when Series contains 1 positive value when rest are zero and the positive value is not on the end it still fails. Check:dojox/charting/tests/test_pie2d_zeroslice.html Provide next Series:

chart1.addSeries("Series A", [0, 4, 0, 0]);

You will see the Error: TypeError?: dyn is undefined on Legend.js ========================================== After debugging I saw that Pie Chart when it faces full slice it stops processing the other zero slices. A very small fix can be applied to Pie.js line 301: From: return true; stop iteration To: return false; continue iteration This solves all issues with zero slices and Legend

Change History (2)

comment:1 Changed 9 years ago by cjolif

Milestone: tbd1.9
Owner: changed from Eugene Lazutkin to cjolif
Status: newassigned

comment:2 Changed 9 years ago by cjolif

Resolution: fixed
Status: assignedclosed

In [30048]:

fixes #16376. Fixes issue with Pie legend when all but one slice are null.

Note: See TracTickets for help on using tickets.