Assuming that the data will reside in another file format than Visio, I think you'll not be happy with Visio's graphing capabilities.
The simplest diagrams could be done with excel. You may also look at math software (mathCAD and co.), or for elaborate diagramming with external computation D3.js.
My 2 cents.