Straight lines...

Jul 9, 2009 at 1:24 PM

Currently D3 offers HorizontalLine and VerticalLine classes to allow annotation of a chart

Might there be a chance of generic straight line class being added?

This would be -very- useful to me to show tangents.



Jul 13, 2009 at 6:51 AM

Hi Nick,


Take a look at a source code of HorizontalLine and VerticalLine in Shapes folder - if you wish, you can modify their code to draw a inclined line.

If you want me to create such a class, I need to know the way you are going to give a line - is it is described by one point and an angle, or by two points the line is passing through.


Best regards,