Jump to content
We've recently updated our Privacy Statement, available here ×

how to set the width for the bar in barchat


alvintkl

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

yes, If you use customizer class you will be able to solve this problem

 

 

 

Code:
public void customize(JFreeChart chart, JRChart jasperChart) {				BarRenderer  renderer = (BarRenderer ) chart.getCategoryPlot().getRenderer(); 					    renderer.setMaximumBarWidth(0.05);        	   	    renderer.setItemMargin(0.0); 	}        
Link to comment
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

×
×
  • Create New...