ankushchhabra Posted July 8, 2013 Share Posted July 8, 2013 I am using JasperReports Server 5.0 professional Version. For one of the report, I am using Chart Customizer to customize the color of the bars. Evaluation Time is Report In iReport, i have defined the Series expression as $F{form} + "(" + $V{month} + ")" In customize method of Java file, i want to access above expressions' value which are 1-sep , 2 - Oct, 3 -Jan , 4 -Feb I have tried the following code to get Series values but no success. public JRCategorySeries[] categoryList = null ; JRFillCategoryDataset categoryDS = (JRFillCategoryDataset)jasperChart.getDataset(); categoryList = categoryDS.getSeries(); SubCategoryAxis domainAxis = new SubCategoryAxis(""); domainAxis.setCategoryMargin(0.05); for (int i = 0 ; i JRCategorySeries jrcategoryseries = categoryList; domainAxis.addSubCategory(jrcategoryseries.getSeriesExpression().getText()); } I need help in accessing series data point in customize method. I will appreciate your comments. 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