Here's a quick way to get an IEnumerable<(double x, double y)>
containing your coordinates, where filename.txt
is the name of the file containing your data:
var coordinates = File.ReadAllLines("filename.txt")
.Select(line => line.Split(' '))
.Select(line => (x: double.Parse(line[0]), y: double.Parse(line[1])));
Note that this doesn't account for parsing errors, empty lines, etc. You'd want to make this more robust for "production quality" code.
From here, you'll be somewhat dependent on what your charting library expects. This SO answer might be helpful for some more information, although it's a few years old and may no longer be relevant.