Sri Posted July 3, 2009 Report Posted July 3, 2009 Hi All...... There are financial and statistical chart sample in ChartFX7 trial version. Any snipped code to add trendline in financial chart ? (like add linear regression in statistical chart). charts.zip Quote
rocioZ Posted July 3, 2009 Report Posted July 3, 2009 Please refer to the "Samples and Resource Center" that comes with the installation of Chart FX 7. Please go to Chart FX Programmer's Guide --> Chart FX Extensions --> Chart FX Financial --> Interactive Drawing Features --> Trend Line The following code creates, configures and adds Tren Line to the chart: TrendLine tl1 = new TrendLine(); tl1.StartDate = new DateTime(1999, 3, 4); tl1.EndDate = new DateTime(1999, 4, 8); tl1.Line.Color = Color.Red; tl1.Line.Width = 2; financial1.Gallery.Analytical.Drawings.Add(tl1); Hope this helps. Quote
Sri Posted July 5, 2009 Author Report Posted July 5, 2009 Hi Rocio, Thanks for your information. It is very helpfull. Sri Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.