add a line, a dot , or text in the chart area ??

Discussion about JFreeChart related to stockmarket charts.
Locked
TNT

add a line, a dot , or text in the chart area ??

Post by TNT » Mon Nov 17, 2003 1:43 pm

i'm looking for primitive drawing fonction in a chart ..

like a line , a dot or text

After the creation of the chart ..

How can a do that ??

thanks ..

uls
Posts: 25
Joined: Fri Oct 17, 2003 10:46 am

Post by uls » Mon Nov 17, 2003 7:38 pm

lines are easy ... create two entries in a dataset and add to an XYSeries...

TNT

Post by TNT » Mon Nov 17, 2003 8:34 pm

how to add a text in a chart ??

like a java.awt.Graphics ..

g.drawLine(int x1, int y1, int x2, int y2)
or
g.drawRect(int x, int y, int width, int height)
or
g.drawString(String str, int x, int y)

I create very well my chart ( thanks to jfreechart ) ,
and I want add some information in the chart ..

for example ... a horizontal line starting a 0.

I have a CandlestickChart .. and a TimeSeriesCollection in the SecondaryDataset.. ( from - 50 to 50 )

Locked