Is it possible using the jfree.chart class to create a bar chart based in data in a text file?? Also can someone tell me where ican find simple code examples that are using jfree.chart?Please help!!
Thanx
bar chart from a file
I have not used JFreeChart as of yet and was wondering if anyone used the CSV functions to read a certain portion of a text file. That is, be able to do a search within the file based on certain row values?
I would have a text file with Time as the first column, based on what window of time I want to plot (user interaction), I would read those rows of values and plot them. Also I would need to be able to read certain column values within those rows (user would choose what variable they want to see plotted). Or I could read all of the columns within those rows into a buffer or something.
I wanted to know if something like this was possible. Thanks
I would have a text file with Time as the first column, based on what window of time I want to plot (user interaction), I would read those rows of values and plot them. Also I would need to be able to read certain column values within those rows (user would choose what variable they want to see plotted). Or I could read all of the columns within those rows into a buffer or something.
I wanted to know if something like this was possible. Thanks
Update:
I was finally able to do this. There is a helpful class Thomas has written and pointed out to me -- CSVTokenizer. It is in jfreereport.
On the web I found a stock chart example that might be of help:
http://www.informit.com/guides/content. ... &seqNum=75
I was finally able to do this. There is a helpful class Thomas has written and pointed out to me -- CSVTokenizer. It is in jfreereport.
On the web I found a stock chart example that might be of help:
http://www.informit.com/guides/content. ... &seqNum=75
You can also look at the code pasted in viewtopic.php?t=11413&highlight=csv
which is a quick roll-your own csv reader
which is a quick roll-your own csv reader