Jump to content


Stacked 2D Bar Chart Features


  • Please log in to reply
3 replies to this topic

#1 sumitanvekar

sumitanvekar

    Junior Member

  • Members
  • PipPip
  • 17 posts

Posted 17 January 2013 - 01:17 PM

Hi,
I am using Stacked 2D bar chart. I need to know if the following feature is available or not.
On Click of the legend, corresponding stack is shown/hidden. But the total of the stack will be fixed. Can it be dynamically calculated based on whether part of the stack is hidden/not.

#2 Guest_Chaitra_*

Guest_Chaitra_*
  • Guests

Posted 24 January 2013 - 05:51 AM

Hello,

Welcome to FusionCharts Forum!

Yes, both of these features are available in FusionCharts.

In multi-series charts, the series name of each dataset shows up in the legend of the chart.

The legend is interactive. That is, when you click on each legend icon, it hides the dataset corresponding to that item.

The total on the stack will stay fixed irrespective of whether a particular dataset is displayed/hidden.

For this purpose, you need to set the "showSum" attribute in the chart element of your XML data to 1.

Ref. Code:

<chart .. showSum='1'>
..
</chart>

I have attached screenshots of the same for reference. Please check.

Hope this helps!

Attached Thumbnails

  • stackbar.PNG
  • stackbar1.PNG
  • stackbar2.PNG


#3 sumitanvekar

sumitanvekar

    Junior Member

  • Members
  • PipPip
  • 17 posts

Posted 24 January 2013 - 04:08 PM

That's correct. But i need the total to be dynamically updated based on whether a set of data is shown or not. consider that are 2 set of data and total is sum of these 2 sets. on clicking of the first legend the 1st set will automatically hidden however totals doesn't get updated. i want it to be updated.

Hope this will make my question clear.

Thanks!



#4 Guest_Chaitra_*

Guest_Chaitra_*
  • Guests

Posted 25 January 2013 - 10:36 AM

Hello,

This feature is not supported by FusionCharts, as of now.