Interpolating line

4 posts, 0 answers
  1. Xoma
    Xoma avatar
    17 posts
    Member since:
    Jun 2009

    Posted 03 Oct 2011 Link to this post

    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.
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 06 Oct 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Xoma
    Xoma avatar
    17 posts
    Member since:
    Jun 2009

    Posted 14 Oct 2011 Link to this post

    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"
  5. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 19 Oct 2011 Link to this post

    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 >>

Back to Top