Hi tunde,
ChartDirector basically can only perform charting, that is, given some data, it will create a chart using the data. You can add lines by passing the data of the lines to ChartDirector.
However, ChartDirector currently is not an interactive graphics editor and does not have graphics editing functions (features similar to "Windows Paint" in which people can draw lines and other things interactively). If what you are referring to interactive graphics editing, you would need to write your own code, or use another component that can perform graphics editing. You can then use ChartDirector to generate the chart, and then use the graphics editing functions to draw on the chart.
If you just want to draw lines, the code should not be difficult. You can use the mouse click events to get the user input, then draw lines to join the points clicked by the users. However, for general graphics editing (in which people can edit the lines, drag the end points, save/restore the edit, to undo/redo previous actions, add text annotations, etc), it will be more difficult.
As an alternative to interactive graphics editing with ChartDirector, some of our customers use a simplier user interface. For example, they may allow the user to click on two the candlesticks, and then their code will update the chart with a line joining the top (or bottom) points of the candlesticks, etc..
Hope this can help.
Regards
Peter Kwan |