neozerabbit Posted September 22, 2011 Share Posted September 22, 2011 Is there a way to hide one or several label links ? Explanation : I was asked in a pie chart to explode slices and display a label when it's >30%I make my own label generator extending StandardPieSectionLabelGenerator. So I am able to hide some of my labels but not hiide the label link.With "plot.setLabelLinksVisible(false);" we can hide all label links but I want to choose with label link to hide. I am searching on plot customization but with no sucess. Link to comment Share on other sites More sharing options...
szaharia Posted September 22, 2011 Share Posted September 22, 2011 Hi,To hide both the label and the link, the generateSectionLabel(...) should return null for those particular cases.HTH,sanda Link to comment Share on other sites More sharing options...
neozerabbit Posted September 22, 2011 Author Share Posted September 22, 2011 Thanks. My error was to return "" instead of null. Now it's fine. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now