Setting LineKind to Spline for XYChart

Charts for WPF Forum

Posted 6 years ago by manu mohan
Version: 17.2.0664


I am using XYChart for plotting line series data. I want to display data as normal line series and also as spline.

Now i need to set the LineKind at LineSeries level when i create the data for the chart as given below.

new LineSeries
ItemsSource = {},
XPath = "Time",
YPath = "Value",
LineKind = XYSeriesLineKind.Spline,
MarkerVisibility = ChartMarkerVisibility.All

Is there a way to set the LineKind for the entire control when we create the instance of the control itself, so that when i am refreshing it at a particular interval i dont have to set it each time.

Comments (1)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA


Sorry, the series' property is the only way to set the line kind.  If you simply update the existing series' ItemsSource (instead of making a new series) each time you need to "refresh" then you shouldn't have to update the line kind again.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.