amit.barkai Posted June 9, 2013 Share Posted June 9, 2013 Hi All when creating an ad-hoc report with chart element the series color are automatically selectedis there a way to change these colors ? thanks Link to comment Share on other sites More sharing options...
Ankur Gupta Posted June 10, 2013 Share Posted June 10, 2013 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 More sharing options...
amit.barkai Posted June 10, 2013 Author Share Posted June 10, 2013 i know you have the IReport option to create reports for jasper ( i didnt find a way to defined hard code colors for each series ) i want to have the ability to set / edit the chart on Ad-Hoc report Link to comment Share on other sites More sharing options...
Ankur Gupta Posted June 10, 2013 Share Posted June 10, 2013 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 helpsThanks,Ankur 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