bsklar

Javascript slicing for pie charts

Recommended Posts

The following example uses links which rebuild the chart with the slice that is clicked on pulled out or if it is out it will go back in. When the "Analyze Events" button is clicked the alert will display the label of the slices that

 

are out.

 

 

 

The file with the example is attached as a .txt file because the


wouldn't work and .html files are not allowed as attachements. Change the file extension to html and it will work fine.

slice_example.txt

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

 

Since v3.2 you can do it much easily.

 

Since v3.2 you can use a function called togglePieSlice(id).

 

This function takes the numeric id of the slice (which starts at 0) to slice out or slice in(if already sliced out)

 

So, your implementation would be :

 

1. Call a JavaScript function which using link.

2. The JS function will do the drilldown

3. The JS function will also takes care of slicing using togglePieSlice() function.

 

e.g. http://www.fusioncharts.com/code/JavaScript/PieDoughnut/togglePieSlice.html

Share this post


Link to post
Share on other sites

FC Docs

Hi,

 

Since v3.2 you can do it much easily.

 

Since v3.2 you can use a function called togglePieSlice(id).

 

This function takes the numeric id of the slice (which starts at 0) to slice out or slice in(if already sliced out)

 

So, your implementation would be :

 

1. Call a JavaScript function which using link.

2. The JS function will do the drilldown

3. The JS function will also takes care of slicing using togglePieSlice() function.

 

e.g. http://www.fusioncharts.com/code/JavaScript/PieDoughnut/togglePieSlice.html

 

how is this done in 3.1? Also, is there better documentation of methods pertaining to FC versions? From my understanding you have one doc and lump it all together and API doesnt point out to which version the methods pertain to.

Edited by steveddei

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

I am afraid, pie chart does not support JavaScript slicing in FC 3.1.

 

Since, FC v 3.2 pie chart allows JavaScript slicing.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now