sagar21789 Report post Posted June 25, 2012 Hello, I am working on funnel chart, I want to toggle slice after specific time interval. I reffered http://docs.fusioncharts.com/charts/Code/JavaScript/PieDoughnut/togglePieSlice.html In similar way i want to Toggle slice of Funnel Is there any way to do this? Share this post Link to post Share on other sites
Guest Sumedh Report post Posted June 26, 2012 On 6/25/2012 at 9:09 AM, sagar21789 said: Hello, I am working on funnel chart, I want to toggle slice after specific time interval. I reffered http://docs.fusionch...lePieSlice.html In similar way i want to Toggle slice of Funnel Is there any way to do this? Hi, To achieve this, you would need to call slicing function in the JavaScript's setInterval function. This function will execute a function, over and over again, at specified time intervals. Syntax: setInterval("slicing function()",milliseconds); Hope this helps. Share this post Link to post Share on other sites
sagar21789 Report post Posted June 28, 2012 On 6/26/2012 at 7:24 AM, Sumedh said: Hi, To achieve this, you would need to call slicing function in the JavaScript's setInterval function. This function will execute a function, over and over again, at specified time intervals. Syntax: setInterval("slicing function()",milliseconds); Hope this helps. Thanks, Actually i Need to access the slice property of the funnel chart. I have done this using json like $.getJSON('Data/funnel.json', function(data) { var rdata = {}; rdata = data; if (slice<rdata.data.length) { rdata.data[slice].isSliced = "1" ; slice++; }else { slice = 1; rdata.data[0].isSliced = "1" ; } //funnel chart var funnel = new FusionCharts("Charts/Funnel.swf", "funnelId", "500", "500", "0", "1"); funnel.setJSONData(item); funnel.render("funnel"); }); This is my slicing function which is called after 5 sec. It works , But I want ask is there any other way to do this, like inbuilt function like Togglepieslice similar to that. Thanks and Regards sagar Share this post Link to post Share on other sites
Guest Sumedh Report post Posted June 29, 2012 On 6/28/2012 at 1:07 PM, sagar21789 said: Thanks, Actually i Need to access the slice property of the funnel chart. I have done this using json like $.getJSON('Data/funnel.json', function(data) { var rdata = {}; rdata = data; if (slice<rdata.data.length) { rdata.data[slice].isSliced = "1" ; slice++; }else { slice = 1; rdata.data[0].isSliced = "1" ; } //funnel chart var funnel = new FusionCharts("Charts/Funnel.swf", "funnelId", "500", "500", "0", "1"); funnel.setJSONData(item); funnel.render("funnel"); }); This is my slicing function which is called after 5 sec. It works , But I want ask is there any other way to do this, like inbuilt function like Togglepieslice similar to that. Thanks and Regards sagar Hi, Sincere apologies for the miscommunication. You cannot toggle the Pyramid data-elements. However, at the time of rendering you can specify which data element has to be sliced. For more information, please refer the following URL: http://docs.fusioncharts.com/widgets/Contents/?Pyramid/XMLAPI.html Also, you can animate Pyramid chart using styles. Refer the following URL for more information: http://docs.fusioncharts.com/widgets/Contents/?Styles/Animation.html Share this post Link to post Share on other sites
sagar21789 Report post Posted June 29, 2012 On 6/29/2012 at 5:18 AM, Sumedh said: Hi, Sincere apologies for the miscommunication. You cannot toggle the Pyramid data-elements. However, at the time of rendering you can specify which data element has to be sliced. For more information, please refer the following URL: http://docs.fusionch...mid/XMLAPI.html Also, you can animate Pyramid chart using styles. Refer the following URL for more information: http://docs.fusionch.../Animation.html Ok, Thanks, I will checkout the links...... Thanks once again. Share this post Link to post Share on other sites
Guest Sumedh Report post Posted June 29, 2012 On 6/29/2012 at 6:05 AM, sagar21789 said: Ok, Thanks, I will checkout the links...... Thanks once again. Share this post Link to post Share on other sites