Summary: How can I display a bar chart, using CFML as my programming
language, making use of the JFreeChart java class library, so that the
values for each bar in the chart appear above each bar?
I am not using cfchart, which does not do what I want*. I am using
ColdFusion MX 6.1, the server is a Windows Server 2003 box.
I am using JFreeChart (www.jfree.org) and CFML (as in ColdFusion
Markup Language) to display a bar chart, based on a code example I
found at http://weblogs.macromedia.com/cantrell/archives/2003/06/using_coldfusio.cfm
Anyhow, I do have the bar chart displaying in cfml, but I cannot for
the life of me figure out how to display the values at the top of the
chart.
For example, if you run the JFreeChartDemo
(jfreechart-1.0.1-demo.jar), BarChartDemo7.java shows what I'm talking
about.
I've seen loads of straight Java examples that how how to do what I
want, but I cannot for the life of me get these to work with CFML,
since the syntax is slightly different, and if you aren't familiar
with both Java and CFML, well, it's not obvious to me.
An examples of pure Java code explaining how to add the values is
http://forum.java.sun.com/thread.jspa?threadID=672754&start=15&tstart=0
, you'll need to go to the end of the thread to see.
[* If you can make this work with the version of CFCHART that comes
with CFMX 6.1, I'll take that answer, too. From what I've seen,
though, displaying values above the bars in a bar graph is not an
option with CFCHART] |