Sign in to follow this  
xuejiaye

about Scatter charts regression line ,Can I draw it myself? by provide startValue[x1,y1],endValue[x2,y2]

Recommended Posts

about Scatter charts regression line ,Can I draw it myself? by provide startValue[x1,y1],endValue[x2,y2]

the regression line is draw by fusioncharts,use the method by itself,can I do it myself?

I have already got the line's startValue[x1,y1] and endValue[x2,y2]

Share this post


Link to post
Share on other sites

Hi,

 

It is not possible to draw regression lines of Scatter chart manually.  FusionCharts calculates regression line automatically based on the data provided.

 

But as a workaround, you may provide data points in the dataset element in your XML/JSON data and connect them using "drawLine" attribute of dataset element. 

 

Hope this helps.

Share this post


Link to post
Share on other sites

Hi,

 

It is not possible to draw regression lines of Scatter chart manually.  FusionCharts calculates regression line automatically based on the data provided.

 

But as a workaround, you may provide data points in the dataset element in your XML/JSON data and connect them using "drawLine" attribute of dataset element. 

 

Hope this helps.

Thanks a lot !

Finally I override the method 'getRegressionLineSeries' . 

Add a parameter to control that whether to use my provide data 

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