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
Have code to donate
-
- Posts: 106
- Joined: Fri May 27, 2005 7:44 pm
- Location: Boulder, CO
- Contact:
-
- Posts: 106
- Joined: Fri May 27, 2005 7:44 pm
- Location: Boulder, CO
- Contact:
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
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
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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
https://sourceforge.net/tracker/index.p ... tid=315494
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Another chart-XML integration approach
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.
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.