How do I change the axis type of an Excel chart's X axis using PowerShell?
To do this manually using Excel:
- open workbook in Excel
- select X axis chart
- select "Axis options"
- configure "Text axis" under the "Axis Type" option
Update: it's XLSX format. I should clarify: the issue is that the data set I'm plotting uses dates on the x axis and Excel is intelligently filling in the gaps (so if I have May 5 and May 7 in the data set, Excel plots May 6 too). Swapping to Text appears to fix this issue in the Excel app. I wish to automate this like the rest of my data analysis and charting.