We would like to create a chart on the fly using a custom image that we design. This would be used in a Java 1.5 web app. An example would be to show a chart representing a ratio of men to women. We would want the chart to be a linear row of women icons and men icons in which the number of women icons would be the percentage of women and the number of men icons would be the percentage of men. Is there anyway to achieve this.
Asked
Active
Viewed 335 times
3 Answers
2
If I'm understanding correctly, JFreeChart does what I think you're looking for. To render a bar as a row of icons, you'll probably end up needing to play around with XYBarRenderer
, perhaps with a custom implementation of XYBarPainter
.
You can also include icons on line charts, etc. as well; see ShawnD's question from a couple years back.

Community
- 1
- 1

mergeconflict
- 8,156
- 34
- 63
0
Google Chart is a good option. Nice and easy to learn, with a lot of features. Take a look at their showcase.

Miguel Prz
- 13,718
- 29
- 42
-
I would need the web app to put the chart in a PDF using iText. It looks like google is geared for HTML and javascript. Sorry for the confusion – Doug Oct 25 '11 at 21:10
0
I have had good luck with jCharts in the past.
The trouble with google charts, is that that is a third party service you don't control. Also, if you want to write that chart into a pdf (or some printable format) at some point, then having it be delivered client side could be a problem.

Nathan Feger
- 19,122
- 11
- 62
- 71