Sign in to follow this  
frjariello

Regression Line coordinates

Recommended Posts

Hello,
I'm using the Scatter and Bubble charts with the Regression Line, and is all ok, but now I need to know the coordinates of the start and end points of the regression line represented (and if possible also the equation), as I should redraw it on another graph (for comparison), you can obtain them?

 

Thanks

 

bye bye

Edited by frjariello

Share this post


Link to post
Share on other sites
Guest Sumedh

Hello,

 

There are several methods to calculate and draw regression lines.

 

The scatter and bubble charts of FusionCharts XT uses Linear Regression and least-squares or least absolute deviation method.

 

This method calculates the best-fitting straight-line for the observed data by minimizing the sum of the squares of the vertical deviations from each data point to the line (if a point lies on the fitted line exactly, then its vertical deviation is 0).

 

Because the deviations are first squared, then summed, there are no cancellations between positive and negative values.

 

For more information, please refer this link: http://docs.fusioncharts.com/charts/contents/?AttDesc/BubbleScatter.html

Share this post


Link to post
Share on other sites

 

Thanks for the reply.

I've already read the link, and can represent the regression line in the chart, with showRegressionLine = '1 '.

Now I would need to know the coordinates and the equation of the regression line represented, in order to represent it in another chart. There is no way to obtain them?

 

Thanks again

 

bye bye

Edited by frjariello

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this