Marker between 2 point!!!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
khanhlv
Posts: 21
Joined: Thu May 22, 2008 10:27 am

Marker between 2 point!!!

Post by khanhlv » Mon May 26, 2008 8:41 am

Dear all,

Can i add marker for 2 point. Example draw line between 2 point not a vertical or horizontal line?

Thanks for your support!

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Post by skunk » Mon May 26, 2008 1:53 pm

Add one of these

Code: Select all

org.jfree.chart.annotations.XYLineAnnotation
or one of these

Code: Select all

org.jfree.chart.annotations.CategoryLineAnnotation
depending on the type of plot you are using

khanhlv
Posts: 21
Joined: Thu May 22, 2008 10:27 am

Post by khanhlv » Wed May 28, 2008 10:01 am

thanks! It's powerful!

Locked