The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a situation where I am drawing a line chart using SyncFusion WPF Chart tools; however, the number of series is variable. I know I can add the series through code-behind, but I was wondering if there is a way to do this more elegantly through XAML data-binding to a collection of lines? My thoughts are:
- Have a class with xPoint and yPoint called DataPoint. - Have a class containing ObservableCollection, a color, and a legend label called DataLine. - Have an ObserverableCollection in my program, which can bind to the Chart.
Is it possible to do this through some sort of ItemsSource/ItemTemplate type thing? Or is there another way? I cannot find any examples of this situation in the documentation, but it would be incredibly helpful.