panlj2004 Posted August 5, 2015 Share Posted August 5, 2015 Dear All,I have a bar char in my report, I help the value showed inside the column, like below: New, the values was Please help, thanksKelly Link to comment Share on other sites More sharing options...
hozawa Posted August 6, 2015 Share Posted August 6, 2015 Just like in my chart example. You're need to create a customizer to do this.http://community-static.jaspersoft.com/sites/default/files/images/adroid.png?_ga=1.185722601.1963366405.1428885506 Link to comment Share on other sites More sharing options...
panlj2004 Posted August 6, 2015 Author Share Posted August 6, 2015 Thank you hozawa for quick answer, could you please give me more details for create the customizer ? Link to comment Share on other sites More sharing options...
djohnson53 Posted August 6, 2015 Share Posted August 6, 2015 I beleive Hozawa is referring to this type of customization.Implementation and Usage of Chart Customizer Classes for Customizing JFreeCharts in JasperReports Link to comment Share on other sites More sharing options...
panlj2004 Posted August 10, 2015 Author Share Posted August 10, 2015 Hi djohnson53,I read the doc that you attached link, but it still not clear for me.1.Implementation of a Chart Customizer ClassShould I create the following class?import net.sf.jasperreports.engine.JRChart;import net.sf.jasperreports.engine.JRChartCustomizer; ......... rangeAxis.setTickMarkOutsideLength(2.5f); }} 2. How to create a class?3. There are some guide in Jaspersoft-Studio-User-Guide.pdfwhere should I write this passage net.sf.jasperreports.engine.JRChartCustomizerCurrently, JasperReports Server takes advantage of only a small portion of the capabilities of the JFreeChartlibrary. To customize a graph, you must write a class that implements the following interface:net.sf.jasperreports.engine.JRChartCustomizerThe only method available from this interface is the following:public void customize(JFreeChart chart, JRChart jasperChart);It takes a JFreeChart object and a JRChart object as its arguments. The first object is used to actually producethe image, while the second contains all the features you specify during the design phase that are relevant to thecustomize method. waiting for your reply, thank youKelly pan Link to comment Share on other sites More sharing options...
djohnson53 Posted August 10, 2015 Share Posted August 10, 2015 Try looking at : http://community.jaspersoft.com/wiki/how-use-customizer-class-change-behavior-multi-axis-chartOr:Here is a search of questions that might give you more: http://community.jaspersoft.com/search/tags/chart-customizer-class-6451/category/Answers/category/Wiki?query= 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