Sign in to follow this  
jgoldstein

How do you prevent percentages from being re-calculated when a segment is removed from a stacked bar chart?

Recommended Posts

I am displaying a "stacked2bar" chart with 3 different series stacked together.  Of course, at start, each segment combined adds up to 100%.  I have "interactiveLegend" enabled so that a user can click a series in the legend and remove it from being shown.  However, when this is done, the percentages get re-calculated to add up to 100% for the 2 (or 1) segment that is still visible.  How do I get FusionCharts to retain the original percentages?

 

Example: The segments are "25%, 25%, 50%".  I remove the third segment (50%) and now the two segments are shown as "50%, 50%", but I want them to be shown as "25%, 25%" as those are the true percentages of all of series when combined.

 

Screenshot of all segments:

post-71699-0-86058400-1475243665_thumb.png

 

Screenshot after the middle segment is removed:

post-71699-0-93023700-1475243666_thumb.png

Share this post


Link to post
Share on other sites

Hello,


Thanks for the query.
 
It's not possible.
 
The algorithm is designed in such a way that every time the percentage will be re-calculated for the existing data.
 
Hope this helps, 
Thanks,
Prerana Singh

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