User (Legacy) Posted August 15, 2005 Report Share Posted August 15, 2005 Hello all, Is it possible to generate a line of best fit on a scatterplot (XY Plot) on ChartFX graphs? If so, could a kind reader of this message please share such code? Many thanks. :~)Shoba. Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 23, 2005 Author Report Share Posted August 23, 2005 "Shoba Thamma" <sthamma@hotmail.com> wrote in message news:ea4Gy7boFHA.1724@webserver3.softwarefx.com... > Hello all, > > Is it possible to generate a line of best fit on a scatterplot (XY Plot) on > ChartFX graphs? If so, could a kind reader of this message please share such > code? > > Many thanks. > :~)Shoba. > That's called linear regression analysis, or "least squares". You'll need to do the math yourself - the formula calculates the slope and Y-intercept of the best fit line. Using that, you'll need to manually add another series (as a Line), with one X-Y point for each X position. It's not rocket science...but, it's close. Alternatively, I think there's a plug-in for ChartFX that supports that requirement without your having to do the calculations yourself. GG Quote Link to comment Share on other sites More sharing options...
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.