alvintkl Posted January 20, 2010 Share Posted January 20, 2010 i got problem for the bar chat i createdthe bar look very thickhow to solve this? Link to comment Share on other sites More sharing options...
mrcaffeine Posted January 20, 2010 Share Posted January 20, 2010 The width of the bars gets dynamically calculated based on the count of bars and widht of the bar chart element. If you want to change the behaviour you might want to learn how to use a chart customizer. Link to comment Share on other sites More sharing options...
voll Posted January 27, 2010 Share Posted January 27, 2010 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 More sharing options...
alvintkl Posted January 28, 2010 Author Share Posted January 28, 2010 can please let me know more detail, where to put this code? 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