2006 IR Open Dicussion Posted September 5, 2006 Share Posted September 5, 2006 By: Richard Tse - sourcerich 3D bar chart scale and spaces between bars 2006-04-24 01:06 I have adopted 3D bar chart. How can I change the scale and space length between bars? Link to comment Share on other sites More sharing options...
vandana Posted March 8, 2007 Share Posted March 8, 2007 Hi , I would like know how to remove the space between two bars while using bar 3D chart.Hope for the reply. -Thanks Link to comment Share on other sites More sharing options...
jmurray Posted March 10, 2007 Share Posted March 10, 2007 If your problem is that you only see very thin chart columns separated by a large amount of whitespace then you need to set the Series Expression to some static value, like "my Static Value" Link to comment Share on other sites More sharing options...
javadeveloperbr Posted March 12, 2007 Share Posted March 12, 2007 People... I had to implement a Customizer Class and setting it up into the "Chart Properties", attribute "Customizer class" as follow I hope it helps... Code:import net.sf.jasperreports.engine.JRAbstractChartCustomizer;import net.sf.jasperreports.engine.JRChart;import org.jfree.chart.JFreeChart;import org.jfree.chart.plot.CategoryPlot;import org.jfree.chart.renderer.category.BarRenderer;public class CustomizeBarChart extends JRAbstractChartCustomizer { public void customize(JFreeChart chart, JRChart jasperChart) { CategoryPlot categoryPlot = chart.getCategoryPlot(); BarRenderer renderer = (BarRenderer) categoryPlot.getRenderer(); //Spaces between bars renderer.setItemMargin(0.03); }} Link to comment Share on other sites More sharing options...
kshipra88 Posted August 3, 2011 Share Posted August 3, 2011 hello,I ma a newbie.I would like to know how to create a customiser class?i mean where and how? Link to comment Share on other sites More sharing options...
mdahlman Posted August 3, 2011 Share Posted August 3, 2011 Warning: you need to know some Java to create or modify chart customizers. If you want a simple introduction, then these articles of mine should help:http://mdahlman.wordpress.com/2010/08/18/chart-customizers-1/http://mdahlman.wordpress.com/2011/04/17/chart-customizers-2/Regards,Matt Link to comment Share on other sites More sharing options...
dayanaa2003 Posted December 4, 2012 Share Posted December 4, 2012 Hi mdahlman, Sorry for the late comment. Even i am trying to reduce the space between the bars. I am using I-Report 4.5.1 after giving the "" also the gap between the bars are not reducing. Could you please provide me a sample jrxml for the same.<<<<<< This comment was blocked and unpublished because Project Honeypot indicates it came from a suspicious IP address. Link to comment Share on other sites More sharing options...
dayanaa2003 Posted December 4, 2012 Share Posted December 4, 2012 Hi mdahlman, Sorry for the late comment. Even i am facing the issue of space between bars. I am using I-Report 4.5.1 After giving the "" also the gap between the bars are not reducing. Could you please provide me a sample jrxml for the same. Link to comment Share on other sites More sharing options...
astoal20 Posted September 18, 2013 Share Posted September 18, 2013 helped me 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