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

How to setup multiple series of JFreeChart?


lucky7456969
Go to solution Solved by H Mendoza,

Recommended Posts

When I am asked to create a series

I put

${grossSales}

${netSales}

I get these out of Jasper report, I think this notation is not accepted. How would I create multiple series, say 2 bars for each customer one for gross sales and one for net sales?

SEVERE: null net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : $F{grossSales} $F{netSales}

 

http://i.imgur.com/t591MtC.png

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution
Hi there -

 

This might help: 

 

After dragging the Chart element into the designer, select a Chart type from the pop up.  In your case, I think you are trying to define a Bar chart, so select that one.  Next, click the Ok button.  From the Category Chart Wizard, select cancel.  Don't worry, the chart is still added to the designer.  Right-click the chart and select Chart Data from the fly-out menu.  From the Chart details pop up, select the Details tab.  Use the Add button on the interface to add the Category series to your chart.  When you are finished, click the Close button on the Chart details pop up window.

 

 

 

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