Sign in to follow this  
mgnair

Slice Color

Recommended Posts

Hi,

 

 

 

With pie chart, is there any option to read/find the color of a slice through javascript? For ex. suppose i have four slices - north, south, east, west - and I want to read the ‘east’ color through javascript.

 

 

 

 

 

Regards

Madhu

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

I am afraid, it is not possible to know the color of the slice on click of it.

 

However, you may call a custom JavaScript method and alert the color of the slice.

 

Hope this helps!

Share this post


Link to post
Share on other sites

Hi,

 

Can you elaborate "you may call a custom JavaScript method and alert the color of the slice", especially when coloring option selected is default.

 

 

 

Regards

 

Madhu

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
Sign in to follow this