This example demonstrates how to implement chart in WPF with header, legend, axis and series in C#, VB and XAML.
Please refer KB links for more details,
How to create chart in XAML WPF
If you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.
You can refer to our WPF Charts feature tour page for its groundbreaking feature representations. You can also explore our WPF Charts example to knows various chart types and how to easily configured with built-in support for creating stunning visual effects.
KB article - How-to-create-Chart-in-WPF