Is it possible to have a WPF graph with both line series and point series?

7 posts, 1 answers
  1. Jessica
    Jessica avatar
    8 posts
    Member since:
    Aug 2019

    Posted 15 Aug 2019 Link to this post

    I need to create a graph that has multiple line series defined by pairs of x-y coordinates ( one start point and one end point). On the same graph I need to have several scatter points with no connecting lines. Also if there's a way to specify a straight line between some of the points and a curved line between others that'd be great. I'm currently researching WPF graphs so I don't have any code to show yet.
  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2444 posts

    Posted 19 Aug 2019 Link to this post

    Hello Jessica,

    You can show both line and point series using the RadCartesianChart control. Depending on the scenario, you can use LineSeries and PointSeries, or ScatterLineSeries and ScatterPoint. You can read more about this in the RadChartView help documentation.

    To draw the additional lines, you can try the chart annotations.

    You can also check the ChartView's SDK examples and demos.

    If this doesn't help, can you post some drawings of the expected result?

    Regards, Martin Ivanov
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Jessica
    Jessica avatar
    8 posts
    Member since:
    Aug 2019

    Posted 19 Aug 2019 in reply to Martin Ivanov Link to this post

    Thanks I think I can do what I need to with this information. If I run into a problem though then I'll post a pic of what I need. Thanks again
  4. Jessica
    Jessica avatar
    8 posts
    Member since:
    Aug 2019

    Posted 20 Aug 2019 in reply to Martin Ivanov Link to this post

    Hi Martin, so I got most of the graph done but there are still a few parts I'm having trouble with, the first pic is the expected graph and the second one is what I have so far. The main things are the axis positions, style and labels and the labels for the diagonal lines (the 0.4, 0.6 etc. which represent the slope of the line) also the curved lines shouldn't level out 

     

     

  5. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2444 posts

    Posted 21 Aug 2019 Link to this post

    Hello Jessica,

    I am not sure what do you mean by saying that they shouldn't level out. Can you describe this? Also, can you give me few examples? 

    Regards, Martin Ivanov
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  6. Jessica
    Jessica avatar
    8 posts
    Member since:
    Aug 2019

    Posted 21 Aug 2019 in reply to Martin Ivanov Link to this post

    Sorry for the confusion, so right now im using a ScatterSplineSeries to create the curved lines. Ideally I want two straight lines to then continue into the curved line on the same trajectory like in example_of_curved_line_correct.PNG however right now the curved lines change there arc around the end points like in example_of_curved_line_incorrect.PNG. Ive also atached a few different exaples of what I'd like the graph to look like.the lines are pretty much all the same for each just different values for there endpoints
  7. Answer
    Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    675 posts

    Posted 26 Aug 2019 Link to this post

    Hello Jessica,

    Thank you for the provided pictures. 

    Please, allow me to elaborate a bit on the ScatterSplineSeries and on the "spline" type series in general. Their idea is to smooth out the line connecting all the data points. They do that by creating a curve between the data points.

    That said, currently there isn't any way to control the tension of the spline, however we do have a feature request for that in our feedback portal: ChartView: Ability to control the tension of the spline. You can vote for it in order to increase its priority. 

    I hope you find this information helpful. 

    Regards,

    Vladimir Stoyanov

    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.


Back to Top