Jump to content
We've recently updated our Privacy Statement, available here ×

Chart Customization : Access Chart's Series expression's value in Customize() method


ankushchhabra

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...