Page 1 of 1

Need help in creating RSI chart

Posted: Fri Sep 26, 2008 2:27 am
by thunderforge
hey all,

i got some problem with drawing a chart for RSI. I read in some data from "out.txt" and wanted to plot them against "month", which will increase by itself. The problem is for setting the month into the dataset:

try {
File f = new File("out.txt");
Scanner input = new Scanner(f);

while (input.hasNextLine()) {

data = input.nextDouble();
i++;
}
}

catch (IOException ex) {
System.err.println(ex);
}

for(y=0;y<=233;y++) {

date[y] = DateUtilities.createDate(2007, sep, 3+y, 12, 0);
dataset.addValue(data[y], "Classes", date[y]);

}

I cant use date[y] in that part, it is suppose to be a comparable. Please help!! BTW, i bought the developer guide already but abit bulky for this.

Posted: Thu Oct 02, 2008 5:54 pm
by RoyW
Not enough info. Don't even know what type of dataet you are using.
How to Ask a Question About JFreeChart