The basic installation guide doesnt say much about how
the data format should look like.
I like to use it but there isnt any examples on how I could
use with my java program to plot lines.
Could someone be so kind to show me how to use JFreeChart.
I saw the demo but I cant do anything with it without examples.
Thanks.
Data Format to read in
Re: Data Format to read in
zw,
You need to get your data into a Dataset and then JFreeChart will create a plot from that. You create different kind of Datasets based on the type of chart you want to create. For example there is the DefaultPieDataset for making pie charts and the DefaultCategoryDataset is great for bar charts.
There are excellent code examples included in the JFreeChart distribution. Try running the class com.jrefinery.chart.demo.JFreeChartDemo to see the charts in action and look in the src/com/jrefinery/chart/demo directory for the actual source which is structured so it is easy to see how the JFreeChart APIs can be used.
HTH,
chuck
You need to get your data into a Dataset and then JFreeChart will create a plot from that. You create different kind of Datasets based on the type of chart you want to create. For example there is the DefaultPieDataset for making pie charts and the DefaultCategoryDataset is great for bar charts.
There are excellent code examples included in the JFreeChart distribution. Try running the class com.jrefinery.chart.demo.JFreeChartDemo to see the charts in action and look in the src/com/jrefinery/chart/demo directory for the actual source which is structured so it is easy to see how the JFreeChart APIs can be used.
HTH,
chuck