VRule will do a vertical line (HRule horizontal) and surfaces styles to do with width and colour, but not solid/dashed. You could subclass it yourself and do the dashes.
would method also apply within a chart?...i needed to draw a vertical line starting at a given point
You could always just use the graphics class of your chart component. Just access its graphics object, set the line style/thickness, move to the start point, and line to the end point. Something like this,
If you want to draw a line withing a chart according to the chart's x,y axis values instead of x,y pixel coordinates you will have to look into using a CartedianDataCanvas as an annotationElement of the chart. i.e if you have x as months and y as money, draw line from (March, $400) to (June, $100)
still confused..how do i indicate the coordinates on my horizontal axis where i want to start my line at? I want to start it at October (I have a horizontal axis of Jan-Dec)