• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

ireports Dual Axis Bar Chart

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does JFreeChart offer a Dual Axis Bar chart but Jasper Reports does not and subsequently ireports?

The boss wants a Dual Axis Bar Chart
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can prepare the JFreeChart object and wrap it in JCommonDrawableRenderer, then you can pass it into you jasperreport template as parameter.
In your jasperreport template, you can create an image component and reference the pass-in parameter.

With this method, you can create whatever JFreeChart you want.

You can find an example here (in demo folder) - http://downloads.sourceforge.net/jasperreports/jasperreports-3.1.3-project.zip?modtime=1231788506&big_mirror=0
 
Mike Graber
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the input, it makes perfect sense

After reviewing ireports more I found the multi-axis chart that will give me what I need. The documentation I found that reported JasperReports did not implement the dual axis bar chart threw me off for a while.
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!