Hi Megha,
If you only use y-coordinates, then the x-coordinates are assumed to be the array index 0, 1, 2, 3, 4, ....
Given the (x, y) coordinates, internally, ChartDirector will compute the trend line parameters (for a linear trend line, it is the slope and intercept). ChartDirector then compute the two end points of the trend line segment that is within the plot area. Then it will join the two end points with a line.
The "Confidence Band" sample code demonstrates how to obtain the slope and intercept computed by ChartDirector. You can use them to compute your own coordinates along the line.
http://www.advsofteng.com/doc/cdcpp.htm#confidenceband.htm
Hope this can help.
Regards
Peter Kwan |