Does jFreeChart support drawing real time lines over graphs?

Discussion about JFreeChart related to stockmarket charts.
Locked
babis
Posts: 1
Joined: Fri Jul 28, 2006 8:17 am

Does jFreeChart support drawing real time lines over graphs?

Post by babis » Fri Jul 28, 2006 8:26 am

I have stock graphs and would like to draw lines over the graphs. Like a straigh line to see where it cuts the graph or draw fibonacci lines or other studies.
I that supported by jFreeChart?

thanks in advance,
babis

fede
Posts: 20
Joined: Tue May 23, 2006 9:15 am

Post by fede » Fri Jul 28, 2006 5:11 pm

Hi,

Drawing trend lines, is not supported by JFreeChart, but you can do it implementing MouseListener on a chartPanel.

Also you can use ShapeAnnotations to draw your lines or other Items

clam61
Posts: 66
Joined: Tue Jul 03, 2007 9:59 pm

Post by clam61 » Wed Jul 04, 2007 8:37 pm

what if i dont want the user to draw lines, but i want my generated charts to have a line drawn?

jwenting
Posts: 157
Joined: Sat Jul 15, 2006 7:46 am

Post by jwenting » Thu Jul 05, 2007 6:49 am

You can do that. Just calculate the trendline as a new series from the same data and use a CombinedPlot to merge the original plot and the one generated from that calculated series.

Locked