Page 1 of 1
add a line, a dot , or text in the chart area ??
Posted: Mon Nov 17, 2003 1:43 pm
by TNT
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 ..
Posted: Mon Nov 17, 2003 7:38 pm
by uls
lines are easy ... create two entries in a dataset and add to an XYSeries...
Posted: Mon Nov 17, 2003 8:34 pm
by TNT
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 )