The Chart class from the Data Visualization library is the correct control to use. You didn't specify what framework you are targeting but if you have a .NET 4.x app then it should be fine. You just need to open the form you want to add it to in the designer and the control should be available. Note that VS 2022 is using a newer Winforms designer and may have issues with this control. The workaround depends upon how comfortable you are with Winforms designer.
- Open the form in VS 2019 or earlier and use that designer to work with the form until the chart is set up. This is just so you can use the older designer and has no impact on the actual application requirements.
- Edit the
.designer.cs
file and add the control field along with the basic control properties in theInitializeComponent
method. In theory you can then open the designer normally and at least edit the properties using the Properties window.
In either case you can host the control a Windows Forms app.