Hello friends this is the code I am using to update the pie chart on fly..
dojo.require("dojox.charting.Chart2D"); dojo.require("dojox.charting.plot2d.Pie"); dojo.require("dojox.charting.action2d.Highlight"); dojo.require("dojox.charting.themes.Wetland"); dojo.require("dojox.charting.action2d.MoveSlice"); dojo.require("dojox.charting.action2d.Tooltip"); dojo.require("dojox.charting.themes.MiamiNice"); dojo.require("dojox.charting.widget.Legend"); dojo.addOnLoad(function() { var dc = dojox.charting; var c = new dc.Chart2D("c"); c.setTheme(dc.themes.MiamiNice) .addPlot("default", { type: "Pie", fontColor: "black", labelOffset: -30, radius: 80 }).setTheme(dojox.charting.themes.Wetland).addSeries("Series A", [ { y: 4, stroke: "black", tooltip: "" }, { y: 2, stroke: "black", tooltip: "" }, { y: 3, stroke: "black", tooltip: "" }, { y: 1, stroke: "black", tooltip: "" }, { y: 2, stroke: "black", tooltip: "" }, ]); function createInputs() { var div = dojo.byId("seriesInputs"); var seriesData = [2, 1, 3, 4, 1]; var inputs = []; dojo.forEach(seriesData, function(item, index) { var input = seriesData; inputs.push(input); div.appendChild(input.domNode); dojo.style(input.domNode, "width", "60px"); var updateFn = function(value) { seriesData[index] = value; chartTwo.updateSeries("c", seriesData); chartTwo.render(); }; // Update the change when the values are changed. dojo.connect(input, "setValue", updateFn); }); dojo.addOnLoad(createInputs); var anim_a = new dc.action2d.MoveSlice(c, "default"); var anim_b = new dc.action2d.Highlight(c, "default"); var anim_c = new dc.action2d.Tooltip(c, "default"); c.render(); });Please any body tell me where I am doing wrong in this Thanks