As far as I know there are no free charting libraries for Java. So after
searching around the internet I found GDChart at
http://www.fred.net/brv/chart/ I have modified this package to run with JNI.
I have also wrapped it with a servlet for use with JServ.

GDChart is implemented in C and it is based on the non-LZW GD1.3 so there is
no Unisys patent issue with the GIFs generated.

I would like to make the code and my changes available to other users of
JServ, but there are some complicating issues.

1) The author of GDChart cannot be contacted. I have been emailing him
without response for about three months. However his license does allow
redistribution.

2) The code is complicated to build on Windows. It requires use of the
ming-w32 version of gcc and it cannot be built with the Microsoft tools.
None of GD, GDChart and ming-w32 are GPL (they are freely available) so the
library can be used in commercial projects.

3) The code is messy due to many different people working on it. My only
involvement with it has only been to get it to build on Windows and to add
JNI support.

4) The unix make files don't build the JNI version.

5) The library is not multi-thread but it would be easy to convert. It use a
big block of statically allocated data which could be dynamically allocated.
I currently reload an instance of the DLL for each chart to avoid this
problem.

On the plus side:
1) it does not require AWT and xWindows at the server. Java based charting
engines that use AWT need xwindows/GDI to supply their drawing primitives.
2) it is fast
3) it is portable

Are people interested in a charting library?
Is someone willing to clean the code and makefiles up?

Jon Smirl
[EMAIL PROTECTED]




--
----------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to