Jump to content
JChartFX Community
  • 0
Sign in to follow this  
ChrisS

Auto-Computed Total value in stacked series

Question

Hi,

 

I'm looking to add a label of the total value of a stacked bar on a bar chart.  Currently I use a separate series as scatter chart type with point labels.  But I see there is a new feature listed under jChartFX 7.4.5649 (which I do have) in the release notes called "- Auto-Computed Total value in stacked series"

 

Do you have any further information on this new "auto-computer" feature?  How do we implement?  Example?  I don't see anything in the API manual on it.

 

Chris

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I apologize for the lack of docs.

 

chart1.getAllSeries().getStackedLabels().setVisible(true);

 
getStackedLabels returns a labels object so you can also change font and other visual attributes.
 
JuanC

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  

×