Since you seem to be open to alternatives, may I suggest Gnuplot. It's a very flexible plotting software that can be easily controlled via pipes. If all you want is to plot some graphs, it's likely much easier to use than the behemoth that is Excel.
Controlling Gnuplot from your own software involves starting it up as a new process and feeding commands into stdin. It has a built-in help function for the commands, and extensive documentation available on the site I linked to. In order to plot some data generated by your program, you could feed it something like this:
set term x11 persist
plot '-' using 1:2 with lines
1 2
2 3
3 2.5
5 1
e
This example is for Linux, and shows the plot in a new window that persists after the controlling program has exited, which is handy if you just want to look at the graph. The set term
line can be changed to adapt for other platforms, or to have it save the output into a file instead (there are many output formats, including PNG and SVG).
Here's an example graph I just created by using
set term png
set output "a-graph.png"
and then running the above plot command.