keth Posted October 26, 2009 Share Posted October 26, 2009 Hi,These days i am working on some reports which nedds graphs. In there i have a Line Chart with 2 category series.and here i am using a chart customizer class to customize the class. Is there any way to get a reference to thse two category series with in the chart customizer. i found a way fo getting a reference to the plot but not these category seriess.public class LineChartCustomizer extends JRAbstractChartCustomizer { public void customize(JFreeChart chart, JRChart jasperChart) { LineAndShapeRenderer renderer = (LineAndShapeRenderer) chart.getCategoryPlot().getRenderer(); //renderer.setSeriesPaint(1, Color.green); //renderer.setSeriesPaint(4, Color.orange); // get a reference to the plot for further customisation... final CategoryPlot plot = chart.getCategoryPlot(); Do you guys have any idea about this. appreciate your helpThanks,Keth 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