#6982 closed defect (fixed)
Pie chart with single data element throws error
Reported by: | guest | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | Charting | Version: | 1.1.1 |
Keywords: | charting | Cc: | |
Blocked By: | Blocking: |
Description
A pie chart that is created with only a single data element throws the following error:
t.run has no properties - Pie.js (line 121)
Here is an example chart which produces this error (note the single data element in "Series A"):
var chart1 = new dojox.charting.Chart2D("test1");
chart1.setTheme(dojox.charting.themes.PlotKit?.blue);
chart1.addPlot("default", {type: "Pie"});
chart1.addSeries("Series A", [4]);
chart1.render();
Attachments (1)
Change History (10)
comment:1 Changed 13 years ago by
Milestone: | → tbd |
---|
comment:2 Changed 13 years ago by
Milestone: | tbd → 1.2 |
---|---|
Status: | new → assigned |
#7124 is the dup of this ticket.
Changed 13 years ago by
Attachment: | Pie.js.diff added |
---|
[ccla] [patch] Pie.js.diff from nicola rizzo, nicola(at)exmachina.ch
comment:6 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:7 follow-up: 8 Changed 13 years ago by
Milestone: | future → 1.2 |
---|
comment:8 Changed 13 years ago by
Replying to elazutkin:
Thanks very much for your correction, is perfect !.
This case even if seems to be not important, see the following usage for example:
I have a tree, each node is a task, each task have a certain period of time, displayed as a pie.
I am displaying in the pie, the nodes in the same level (each node in level n is recursively the sum of its children), clicking inside a pie portion will bring the next level also displayed as a pie.
The following case is real:
node_A (50%)
node_AA (100%)
node_AAA (30%) node_AAB (40%) node_AAC (30%)
node_B (25%) node_C (25%)
clicking on node_A will give you a 100% node_AA, clicking on node_AA will display the pie-> node_AAA,node_AAB and node_AAC
thanks again, the 2D graphics is excellent, and is a very important addition to Dojo '''
Eduardo
mark all (open) tickets w/blank milestones to be "tbd"; their milestones need to be set to a version number or to "future"