Jump to content

Recommended Posts

Posted

I am working on a jasper report which generates pie chart.  In this chart, labels are surrounded by rectangular box with black color border. Is there any way to remove these boxes around the labels?

I am able to remove the box around chart using expression:

chart.getLegend.setBorders(0.0,0.0,0.0,0.0)

 

But I don't know how to do this with labels. Can someone please help me on this?

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
Posted

I got the solution for this. I added following two lines of code in my customize methos:

 
            piePlot.setLabelOutlinePaint(null);
            piePlot.setLabelShadowPaint(null);
 
And this removed box around labels :)

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

×
×
  • Create New...