Jump to content

Create a Bar Chart from a list/array


Recommended Posts

I have a variable of type List (ArrayList in fact) that contains numbers. How can I plot that numbers in a Bar Chart? What should I enter in Series Category Expression?

Complete story:

I'm using an XML datasource. One of its fields is:


So I've created a variable with those values splitted like this:

<variable name="arraylist" class="java.util.List"><variableExpression><![CDATA[newArrayList<>(Arrays.asList($F{values}.split(",")))]]></variableExpression></variable>[/code]

Now I want to plot the values in a Bar Chart but... what should I write here?


The list of values will always have 20 values (size=20), if that simplifies the problem.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 1 year later...

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