Dear All,

I am using google chart api to draw a scatter plot, and draw a regression 
line by including "treadlines" in options
here is my code:

var options = {
          title:  'Consumption vs. Power',
          hAxis: {title: 'Power', minValue: 0, maxValue: 1000},
          vAxis: {title: 'Consumption', minValue: 0, maxValue: 60},
          legend: 'none',
          trendlines: { 0: {
                type: 'linear',
                visibleInLegend: true,
                lineWidth: 1,
                color: 'green',
                } 
                }
        };

But I also want to know the R square which is used to measure the minimum 
distance of scattered points to the regression line.
Does anyone know how to show the R square?

Thanks a lot,

Liang Xin


-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-chart-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to