ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  develop graphics with the chart control
Posted by tunde on Dec-11-2009 22:34
hi, i am working on an application that i will like to draw the financial graphs. my problem is i am not very fairmilier with use of the control. i want to be able to pick and draw trend lines on the control. i am using both the window and web versions of the chart control.

pls any help as to get this done will be appreciated.

thanks
tunde

  Re: develop graphics with the chart control
Posted by Peter Kwan on Dec-12-2009 01:22
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

  Re: develop graphics with the chart control
Posted by tunde on Dec-13-2009 00:34
thanks very much for this information. however, do you know of any pain control that will work good with chartdirector control i will like to give them a trial.
thanks