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

setting colors for Ad-hoc reports


amit.barkai

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi amit,

Actually changing of colors and all the modification to basic definition of the colors could be modified in iReport making use of JFreeCharts customization, but Ad Hoc does not support  the  JFreeCustomiztions .  In fact, Ad Hoc topics have a finite set of supported attributes since the ad hoc feature is geared towards fast report development for non technical users.  For reports that requires JFreeChart customizations, they would have to be created in iReport and deployed to the server.

 

Here JFreeChart customizations means that the modification in the default style of the charts like colors,label, font type ,label placement etc.

 

Hope that it helps.

 

Thanks,

Ankur

 

 

 

Link to comment
Share on other sites

Hi Amit,

Actually not possible for the Ad Hoc Reports as , it is defined for non technical people who just have aim to create reports with the default setting provided.

So the customization think is not possible in case of Ad Hoc Report

 

This is how you can set the colors in the jFreechart customization when used in iReports

 

PiePlot plot = (PiePlot)chart.getPlot();  // Specify the colors here  Color[] colors = {Color.blue, Color.yellow, Color.green};  PieRenderer renderer = new PieRenderer(colors);  renderer.setColor(plot, dataset);[/code]

 

Hope that this helps

Thanks,

Ankur

Link to comment
Share on other sites

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...