Need help in creating RSI chart
Posted: Fri Sep 26, 2008 2:27 am
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.
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.