I have used XYAnnotation and drawn a rectangle in xylinechart. Now how can I join it with another rectangle annonation?
XYAnnotation
xylinechart
One way would be to use an XYLineAnnotation
XYLineAnnotation
plot.addAnnotation(new XYBoxAnnotation( 0.5,0.5,1.5,1.5)); plot.addAnnotation(new XYBoxAnnotation( 4.5,3.5,5.5,4.5)); plot.addAnnotation(new XYLineAnnotation( 1.5,1.5,4.5,3.5));