it totally could be done. let's face it, the people who made the charts have the data to make the lines and curves and everything.
the curvy lines are the hardest obviously. if you really wanted to do it, i think you'd have to do a number of examples (trial and error style) to ascertain the formulas for each line. this would be a big job. and it would only work for one aircraft.