Hi chang,
To achieve what you want, you do not need to draw a line layer on the chart. In fact, you do not need to modify the charting code at all.
For example, if you use a digital camera to create a photograph, and then draw a line on it, you do not need to modify your digital camera at all. You just need to use a separate tool (eg. Photoshop) to add a line.
I have seen people who developed their own "Windows Paint" graphics editor control (something like Windows Paint that allows people to draw lines, text boxes, shapes and other things on top of an image). They then use it to draw things on the charts generated by ChartDirector.
Writing a "Windows Paint" like control may take some time. In some simple cases, people may just overwrite the OnPaint event of a control to paint on the controls. See:
http://msdn.microsoft.com/en-us/library/b818z6z6.aspx
Hope this can help.
Regards
Peter Kwan |