Have code to donate

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
DavidThi808
Posts: 106
Joined: Fri May 27, 2005 7:44 pm
Location: Boulder, CO
Contact:

Have code to donate

Post by DavidThi808 » Fri May 27, 2005 7:48 pm

Hi;

I just wrote some code to read in all properties for a chart from a xml file. I did it using reflection where the xml tree nodes are the getter/getter/setter and the text value is the value to set.

However, it requires dom4j (to walk the xml) and it needs someone to put it in the jfreechart package somewhere.

Anyone want it?

thanks - dave

Klaus K.

Post by Klaus K. » Sun May 29, 2005 12:36 am

Yes, I am interessted in using your classes :-)

DavidThi808
Posts: 106
Joined: Fri May 27, 2005 7:44 pm
Location: Boulder, CO
Contact:

Post by DavidThi808 » Sun May 29, 2005 12:41 am

Hello;

Here is the file. My hope is someone in the JFreeChart group makes it part of the standard code.

I'm happy to answer questions from someone adding it to JFreeChart. But if it's for your own use - you're on your own.

Files are at (didn't see a way to add attachments to a posting here):
http://www.windwardreports.com/JFreeCha ... rties.java
http://www.windwardreports.com/JFreeCha ... ption.java

thanks - dave

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon May 30, 2005 6:39 am

This looks like an interesting idea. I've added an item in the Patch manager at SourceForge, so I don't lose track of it:

https://sourceforge.net/tracker/index.p ... tid=315494
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

esword
Posts: 10
Joined: Tue Apr 05, 2005 7:53 pm
Location: Virginia

Another chart-XML integration approach

Post by esword » Thu Jun 09, 2005 3:06 pm

Very nice! I have also done some work in this area. I posted a summary here a while back:

http://www.jfree.org/phpBB2/viewtopic.php?t=12599

Dave's approach is straightforward and definately less intrusive. Mine is sort of a mini-charting-framework since it uses concepts from the meta-jb project other than just the XML reading (though you could use just the XML part if you wanted).

I'll be posting a new jar and examples for my stuff that works with the rc1 release in the next day or so.

mhilpert
Posts: 497
Joined: Wed Apr 02, 2003 1:57 pm
Location: Germany

Post by mhilpert » Thu Jun 09, 2005 4:41 pm

I have also written my own XML class to create JFreeChart charts. I thought the JFreeChart project already has an XML API starting? It would be nice to have a standard XML API for JFreeChart included.
Java 11, JFreeChart 1.0.15, JFreeSVG 4.0

Locked