Opened 9 years ago

Closed 8 years ago

#12334 closed defect (fixed)

[patch][ccla]"dyn is undefined" error when add legend to pie chart if any slice takes 0 percent

Reported by: ruanqi Owned by: Eugene Lazutkin
Priority: high Milestone: 1.7
Component: Charting Version: 1.6.0rc1
Keywords: Cc: Adam Peller, rqruanqi@…, feijia@…, huoyuxin@…
Blocked By: Blocking:

Description

(1) Create a Pie chart.

(2) Add a data series as below chart0.addSeries("Series A", [{ y: 0 },{ y: 1 },{ y: 3 },{ y: 4 }],{plot: "default"});

(3) "dyn is undefined" error throw out when add legend like below var legend0 = new dojox.charting.widget.Legend({chart: chart0, horizontal: false},"legend0");

(4) Investigation shows that this error occurs when any slice of the pie takes 0 percent.

Expectation: Show all the legends even if any slice takes 0 percent.

Attachments (3)

pieLegend.png (10.5 KB) - added by ruanqi 9 years ago.
pieLegendIssue.patch (655 bytes) - added by Adam Peller 9 years ago.
patch from Rock (IBM, CCLA)
test_pie2d_zeroslice.html (1.6 KB) - added by cjolif 8 years ago.
test case

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by ruanqi

Attachment: pieLegend.png added

Changed 9 years ago by Adam Peller

Attachment: pieLegendIssue.patch added

patch from Rock (IBM, CCLA)

comment:1 Changed 9 years ago by vvoovv

It seems this error has been already reported: #12228. Please close the previous one.

comment:2 Changed 9 years ago by Eugene Lazutkin

Milestone: tbd1.6
Priority: highnormal
severity: majornormal
Status: newassigned

comment:3 Changed 9 years ago by bill

Milestone: 1.61.7

comment:4 Changed 8 years ago by cjolif

I got a complaint about that one as well. Would be good to get it in 1.7.

Changed 8 years ago by cjolif

Attachment: test_pie2d_zeroslice.html added

test case

comment:5 Changed 8 years ago by Chris Mitchell

Resolution: fixed
Status: assignedclosed

(In [24811]) fixes #12334 partial fix for small pie chart values !strict

Note: See TracTickets for help on using tickets.