Dynamically add multiple line series on an XYChart

Charts for WPF Forum

Posted 2 months 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 months 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 (v22.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.