shashank123 Posted June 11, 2009 Share Posted June 11, 2009 HI,Anyone please tell me how to adjust the width of each bar in bar chart in ireport 3.0?Shashank Link to comment Share on other sites More sharing options...
ooober Posted June 11, 2009 Share Posted June 11, 2009 You create a custom Java Class for this. Let me give you the code for this. public class BarChartCustomizer implements JRChartCustomizer{ public void customize(JFreeChart chart, JRChart jasperchart) { CategoryPlot categoryPlot = chart.getCategoryPlot(); BarRenderer renderer = (BarRenderer) categoryPlot.getRenderer(); renderer.setDrawBarOutline(false); renderer.setMaximumBarWidth(0.05);// Set Bar Chart Width. }}Now used this class. In IReport this is an option of using custom file. Put the class name their. Regards Hasham 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