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

Interpolating line

3 Answers 136 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Xoma
Top achievements
Rank 1
Xoma asked on 03 Oct 2011, 03:41 PM
Hi I am using RadChart control with 2 series:
1. BubbleSeries
2. LineSeries.
The line series is used as regression line for all points found in BubbleSeries. The issue that I am facing is inability to "accurately" display the regression line. The regression line contains only two points; the y-intercept and the datapoint with max visible x value. The interpolation between those points is non existent. 
For example, when I have 2 points, the regression line just simply goes through those 2 points - dead on. However, it does not. I was thinking that I could start adjusting the YScale manually so that the points in BubbleSeries appeared to be on the line -> before I dig into that I wanted to ask and see if there is a better solution out there.

Attached is the the chart I am taking about; the point 1 and 4 lie directly on the line, however visually they don't appear. Ignore the points 2, 3, 5 -> in this case there are not used in calculating the points for LineSeries.

https://docs.google.com/leaf?id=0B-bulDANY3zRMDM2YmY3NGItY2M3NC00ZGVmLWIzOGYtYWFmZjYwNzFjODI3&hl=en_US


Thanks.

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Oct 2011, 02:23 PM
Hi Xoma,

Basically, there is no mechanism to automatically correlate the two series. The most straightforward approach in such a case would be to manually set the values of the series items, and/or the range on the axes, to simulate the required layout.

Regards,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Xoma
Top achievements
Rank 1
answered on 14 Oct 2011, 10:36 PM
Please can you confirm, that my regression line that goes through all 5 points is also wrong in relation to the those points, i.e. the regression line I see on the chart, is drawn incorrectly --> LineSeriesDefinition is not a TRUE line series, simply connection of 2 or more points together, and most likely all "invisible" points that fall between the two do not describe an actual function (linear function). Correct?

If it is, then why is it called LineSeriesDefinition --> it's not, it is simply an InterConnectedPointSeriesDefinition, nothing more and nothing less.

Can you please explain what you mean by  "to manually set the values of the series items"
0
Yavor
Telerik team
answered on 19 Oct 2011, 07:59 AM
Hello,

In some cases, when there are too many points, sampling can be enabled internally:

http://www.telerik.com/help/silverlight/radchart-features-sampling.html

you can disable this, to get all the points rendered. In either case (sampling enabled and disabled) can you please specify how the rendering is incorrect - you can supply a screenshot, or better yet, a small working sample, to make sure that we are on the same page.

Regards,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Xoma
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Xoma
Top achievements
Rank 1
Share this question
or