Need help in creating RSI chart

Discussion about JFreeChart related to stockmarket charts.
Locked
thunderforge
Posts: 5
Joined: Sat Aug 16, 2008 5:25 am

Need help in creating RSI chart

Post by thunderforge » 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.

RoyW
Posts: 93
Joined: Wed Apr 23, 2008 7:42 pm
Contact:

Post by RoyW » Thu Oct 02, 2008 5:54 pm

Not enough info. Don't even know what type of dataet you are using.
How to Ask a Question About JFreeChart
The answer does not come from thinking outside the box, rather the answer comes from realizing the truth; There is no Box. my js site

Locked