Drawing a dashed line in a (HORIZONTAL) CategoryPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
snkm007
Posts: 24
Joined: Tue Oct 16, 2007 1:52 pm

Drawing a dashed line in a (HORIZONTAL) CategoryPlot

Post by snkm007 » Mon Nov 19, 2007 1:35 pm

Hello,

Using CategryLineAnnotation doesn't help drawng a dashed VERTICAL line in a horizontal plot!

With the ValueMarker it's possible but for the dashed VERTICAL line.

Pointers here, please?

Thanks,
SNK

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Nov 19, 2007 3:43 pm

What did you try? If you create the CategoryLineAnnotation with the first and last categories on the axis, and constant y values, you'll get a vertical line on a horizontal plot.

If you want a line right across the plot, try the addRangeMarker() method in the CategoryPlot class instead.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked