Marko wrote:
> 1) Is it possible to draw vertical lines (maybe even dashed?)
> into an XYPlot? If so, how?
There are methods in XYPlot for this:
addHorizontalLine(...)
addVerticalLine(...)
In CategoryPlot a similar method is addRangeMarker(...). I plan to change XYPlot to use addDomainMarker(...) and addRangeMarker(...) for consistency (and also because then all formatting can be encapsulated in the Marker class...for example, a Stroke setting could easily be added).
> 2) Looks like annotations are currently not supported by
> jfreechart. I'm trying to draw something like little markes
> over certain points of an XYSeries in an XYPlot. What concept
> should I use to add this functionallity? Can you give me a
> hint? I have trouble finding the right place to start
> drilling

...
I'd like to have a general mechanism for adding text items, arrows, other symbols etc, but haven't implemented it yet. It would probably fit into the XYPlot class (with something similar in CategoryPlot) in much the same way as the horizontal and vertical line support that is already there).
One other approach is to use an OverlaidXYPlot and drive your symbols from a dataset. I think this is the purpose of the SignalRenderer class and related classes (in a stock charting context) though I've never used it.
Regards,
DG.