Dynamically add multiple line series on an XYChart

Charts for WPF Forum

Posted 2 years ago by Fanis
Version: 22.1.1
Avatar

Hello,

I need to dynamically add multiple line series on a chart. Do you have any sample codes showing how this can be done as all the examples I have found add lines statically?

Thank you.

Comments (1)

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

Hello,

You should be able to create your series programmatically, setting similar properties to the XAML examples.  Then add it to the chart via a line like this:

chart.Series.Add(mySeries);


Actipro Software Support

The latest build of this product (v24.1.1) 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.