I recently wrote a program similar to what you are writing. I used POI.
I have to show few graphs so I couldn't add new rows/columns. Instead, I maintained constants for row/column mappings (A true hardcoding) and then editing values in those to reflect in my graph.
Let me know if any part of my could help you.