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

Trend line on scatter chart

4 Answers 227 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 14 Nov 2010, 07:27 PM
Is it possible to do a trend line on a scatter chart?

4 Answers, 1 is accepted

Sort by
0
Eric
Top achievements
Rank 1
answered on 14 Nov 2010, 07:36 PM
Specifically, I'm looking for a logartithmic trend line.
0
Vladimir Milev
Telerik team
answered on 18 Nov 2010, 10:13 AM
Hello Eric,

RadChart only supports linear trend-lines. We apologize for the inconvenience.

Kind regards,
Vladimir Milev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
RoxanaC
Top achievements
Rank 1
answered on 18 Jan 2011, 12:25 PM
Hello Vladimir!
You are saying that "RadChart only supports linear trend-lines". How would you use this feature in a scatter chart for example, where the data source is a collection of points as follows:

public class ScatterDataPoint : IComparable<ScatterDataPoint> {
        public ScatterDataPoint( double x, double y ) {
            this.X = x;
            this.Y = y;
        }
 
        public double X {getset;}
 
        public double Y {getset;}
    }

Right now I have my own way of calculation the ax+b trend line and afterwards I create a LineSeriesMapping in the same chart using this ecuation, but I am curious if there is a easy way available in Telerik.

The most important thing that concerns me is if there is a way to introduce an approximation curve for the points existing in a graph, like a Bezier curve. Right now using a SplineSeriesDefinition for the existing points doesn't help. Is Telerik considering introducing this kind of trend curves in charts in the future?
0
Vladimir Milev
Telerik team
answered on 21 Jan 2011, 08:49 AM
Hi Eric,

Yes indeed you can use a trendline in the form ax+b. Check this help article for more details. As for curves, we currently don't support such annotation. We apologize for the inconvenience.

All the best,
Vladimir Milev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Chart
Asked by
Eric
Top achievements
Rank 1
Answers by
Eric
Top achievements
Rank 1
Vladimir Milev
Telerik team
RoxanaC
Top achievements
Rank 1
Share this question
or