I am getting the required output graph from my C# code.
 
The graph length is very big and I am only able to view some part of it.
 
I tried to use ScrollViewer. But I cannot see the ScrollViewer. Also I am getting the trimmed graph.
 
Please have a look at UI code.
 
The user first clicks on Button. Then he selects the file from dialog box.
 
Then a graph is drawn from the data of that file...