Search found 7 matches

by kulsi
Mon Jun 06, 2005 6:57 am
Forum: JFreeChart
Topic: How to display time in X-axis
Replies: 1
Views: 2144

SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); Date d = new Date(time); Second sec = getSecond(sdf.format(d)); series.add(sec, value); Here is my getSecond function: protected static Second getSecond( String sec ) { try { CSVTokenizer ct = new CSVTokenizer (sec, ":"); //get hour int hour ...
by kulsi
Sun Jun 05, 2005 4:16 pm
Forum: JFreeChart
Topic: NullPointer w/ areachart and time axis
Replies: 1
Views: 2396

ok, so up till now, I *think* no more exceptions.. but now when I run the program, absolutely nothing happens. if anyone has some code sample that creates the stacked area chart with time series data (or at least time on the x axis) please let me know and I can work the rest on my own. I have looked...
by kulsi
Sun Jun 05, 2005 4:12 pm
Forum: JFreeChart
Topic: Best approach
Replies: 3
Views: 3108

Well, I thought of using stacked bar chart (instead of histogram and/or histogram dataset), and then doing the histogram calculations myself and putting the results into an array that has the same number of elements as the set number of bins. But its really getting messy for a few reasons... one is ...
by kulsi
Mon May 30, 2005 8:48 pm
Forum: JFreeChart
Topic: Best approach
Replies: 3
Views: 3108

Hi can you let me know how you did this? I am also trying to implement a stacked histogram. like this: http://img.photobucket.com/albums/v471/kulsi/sa/sa3.jpg but end up getting this: http://img.photobucket.com/albums/v471/kulsi/histogram.jpg I used the HistogramDemo to do this example. I have two d...
by kulsi
Mon May 30, 2005 6:44 pm
Forum: JFreeChart
Topic: NullPointer w/ areachart and time axis
Replies: 1
Views: 2396

NullPointer w/ areachart and time axis

I have went over the posts on using a stacked area chart with a time series and have tried to follow those models. I will try to explain first without pasting the code. I am using TableXYDataset with createStackedXYAreaChart. I create the panel first and within this: Seconds seconds = new Second(); ...
by kulsi
Sun Nov 21, 2004 2:16 am
Forum: JFreeChart
Topic: bar chart from a file
Replies: 5
Views: 4078

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 t...
by kulsi
Sat Nov 20, 2004 8:51 pm
Forum: JFreeChart
Topic: Plotting relationships ala Visio?
Replies: 7
Views: 5849

JFreeChart and JGraph

I was wondering if anyone has used jgraph and jfreechart together? I was thinking to show the relationship between quantity and links.