Jump to content
Changes to the Jaspersoft community edition download ×

How to plot a bar chart (chart is getting data from sub dataset) with huge numbers of data points (more than thousands) in multiple pages


Recommended Posts


I want to plot a Bar chart in multiple pages as the dataset is huge (more than 1000 points).

The chart needs to use a java bean data source.Below is the jrxml code for the chart for getting data.

One parameter has been created.

<parameter name="datasource4" class="java.util.List" isForPrompting="false"/>

Then one dataset has been created.

<subDataset name="dataset4" uuid="8424528c-d095-4b51-9e08-d6346bef037f">
        <field name="name" class="java.lang.String"/>
        <field name="count" class="java.lang.String"/>

Below is how chart data is getting assigned.

                        <datasetRun subDataset="dataset4">
                            <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{datasource4})]]></dataSourceExpression>


I want to use group (lets say splitter) with this chart to split the chart in multiple pages, which is not allowed.

Please suggest how can I use group for chart with subdataset.





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