A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Your code works for me (in Excel 2013).
Try it on a fresh chart in a fresh workbook.
If it works there's something odd about the original chart
If it doesn't there's something odd about your Excel.