Page 1 of 1
Does jFreeChart support drawing real time lines over graphs?
Posted: Fri Jul 28, 2006 8:26 am
by babis
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
Posted: Fri Jul 28, 2006 5:11 pm
by fede
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
Posted: Wed Jul 04, 2007 8:37 pm
by clam61
what if i dont want the user to draw lines, but i want my generated charts to have a line drawn?
Posted: Thu Jul 05, 2007 6:49 am
by jwenting
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.