How To Create Chart In WPF

Sample date Updated on Sep 13, 2025
chart chart-in-cs chart-in-vb charting-library charts create-chart getting-started wpf

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 C# WPF

How to create chart in VB WPF

How to create chart in XAML WPF

Troubleshooting

Path too long exception

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.

See more

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

Up arrow