Ticket #6982 (closed defect: fixed)
Pie chart with single data element throws error
| Reported by: | guest | Owned by: | elazutkin |
|---|---|---|---|
| Priority: | high | Milestone: | 1.2 |
| Component: | Charting | Version: | 1.1.1 |
| Severity: | normal | Keywords: | charting |
| Cc: |
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
Change History
Note: See
TracTickets for help on using
tickets.