Jump to content

Line Chart


keth

Recommended Posts

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 help

Thanks,

Keth

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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