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

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

6 Answers 407 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jessica
Top achievements
Rank 1
Jessica asked on 15 Aug 2019, 05:05 PM
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.

6 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 19 Aug 2019, 08:55 AM

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.
0
Jessica
Top achievements
Rank 1
answered on 19 Aug 2019, 03:13 PM
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
0
Jessica
Top achievements
Rank 1
answered on 20 Aug 2019, 06:16 PM

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 

 

 

0
Martin Ivanov
Telerik team
answered on 21 Aug 2019, 10:11 AM

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.
0
Jessica
Top achievements
Rank 1
answered on 21 Aug 2019, 03:34 PM
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
0
Accepted
Vladimir Stoyanov
Telerik team
answered on 26 Aug 2019, 11:53 AM

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.


Tags
General Discussions
Asked by
Jessica
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Jessica
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or