Jump to content
Changes to the Jaspersoft community edition download ×

Histograms using Jasper Reports


Recommended Posts

Hi to all developers...


I am planning to use jasper report and ireport tool for my project, could any one please tell me whether Histograms are supported by jasper reports or not mind it I m asking about Histogram not Bar Chart.


If yes whats the way to develop it using ireport..


Thanks in advance


Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic



JasperReports and iReport expose a chart component that covers the most common chart types and their most comment settings.

But if you are aware of a specialized chart API able to render the exact chart type that you need (in this case histograms), you could leverage that API by making direct calls to it in an image element.

This is shown in the /demo/samples/jfreechart sample and the /demo/samples/jcharts sample where we use the JFreeChart and the jCharts APIs directly to render charts. In those two sample, we are not relying on the built-in chart component that JasperReports has.


Until histograms are part of the supported chart types, you could render them as shown in the samples.


I hope this helps.


Link to comment
Share on other sites

  • 3 years later...

i could make it work with jfreechart. IReport demo samples have one to use jfreechart on jasper templates. Here one can use jfreechart with histogram to show the chart. Getting the sample data for histogram was a challenge since it does not publish one on their site but i managed to get one from the source code sites.

Link to comment
Share on other sites

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