1. Read CSV and select dataSet ? jfree.orgThere are so many ways to format data in a text file, so I've generally not tried to write lots of code to read data from files / databases. Instead, this is left to you - just create a new DefaultCategoryDataset, then from your own code that scans the file call the addValue() method to add each data item that you ... |
2. Export dataset values to a .csv file jfree.orgJust loop over each column of the array and write each value to a file followed by a comma. Once you are done the row, write a newline to the file. Repeat for each row. Don't worry if your lines (rows) end in an extra comma since these just mean you have a blank cell at the end of the row.[/code] ... |