Question

Setting LineKind to Spline for XYChart

Posted 6 months ago by Avatar manu mohan

Hi,

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 months ago by Actipro Software Support - Cleveland, OH, USA

Hello,

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
Information The latest build of this product (2018.1 build 0671) was released 1 month ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.