I am currently testing a software that writes a couple of CSV files. Now I am looking for a free tool to generate automatically charts (images) from that files. I am working with eclipse and I am working with ANT to build my project. So a tool (perhaps in Java) to use it with ANT would be great.
Currently, I have to do many steps by hand:
- go to the folder of the files
- open and edit the files (replace . by , in numbers)
- open the file in open office
- create a diagram
- export it
Has anybody an idea how to automate this process (even some steps of it)?
Option 1
A very useful program on unix for generating graphs is gnuplot.
I also found a csv2gnuplot script which you could use in a shell script to batch process files.
Option 2
If you’re married to an ANT/Java solution (perhaps you’re on windows), then I adapted the following example using jfreechart
src/sample.csv
build.xml
ivy.xml
The ivy plug-in enables ANT to talk to Maven repositories.
Note:
The latest version of jfreechart has a broken dependency on version 1.0.16 of jcommon (not present in Maven Central)