This is a migrated thread and some comments may be shown as answers.

Regression Line on Line Series

1 Answer 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 10 Oct 2016, 09:28 PM

I have a graph that shows the values of certain measures by time.  I wanted to create a regression line that I can toggle on and off.  I think i can handle the toggle on and off.  But wanted to know if there is any clever or easy way to do the regression line?

The only way I can see to do it is calculate the long way for each value in the series.

 

Thanks

Phillip

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 12 Oct 2016, 12:56 PM
Hi Phillip,

You will have to make custom calculations per X point and provide the final value in the Graph item's DataSource. then you can add LineSeries displaying the value.
The calculation can be done in the data-retrieval method, as a calculated field per row of data, or as an expression of the series' X|Y property.

Such calculations are not included in the graph item's functionality. Please feel free to log a feature request for having an option to add series based on specific formula and the graph's data.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Phil
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or