Hi Mike,
I'm pretty sure something like this should be achievable using the data access module for python. Getting the profile from a raster dataset and passing it back as a collection (string) to a program, which can then project it on a chart as a graph.
Wouldn't you agree ?