Plotting Data in Windows Forms is something you often want to do. The built-in Chart Control for Windows Forms is no longer supported by Microsoft in the latest .NET versions. So, we need to find and use alternative solutions. Many third-party Chart Tools exist. Most of these are commercial and costs money while others are free. This Tutorial will use ScottPlot, which is a free and open-source plotting library for .NET.
Note! This Tutorial uses ScottPlot 4.x and not the newly released ScottPlot 5!
The main difference for the user is that you use AddScatter() in ScottPlot 4.x and you use Add.Scatter() in ScottPlot 5.x.
Another different from ScottPlot 4.x to Scottplot 5.x is that if you want to include data and time on the x-axis is to change from
"FormsPlot1.Plot.XAxis.DateTimeFormat(true);" shown in the video to "formsPlot1.Plot.Axes.DateTimeTicksBottom();"
ScottPlot Tutorial:
https://www.halvorsen.blog/documents/programming/csharp/tutorials/scottplot.php
Blog:
https://www.halvorsen.blog/
YouTube Channel @Industrial IT and Automation
https://www.youtube.com/IndustrialITandAutomation
Chapters:
00:00 Introduction
01:15 Getting Started with ScottPlot
09:16 Plotting Real-Time Data using Scatter Plot
23:17 Plotting Data from Database
Download
0 formats
No download links available.
Plotting Data in Windows Forms using ScottPlot (Free and Open-source Plotting Library for .NET) | NatokHD