Consider creating an Excel file that has space for data, plus a chart pre-defined to use that space for its data. Store that "Excel template" in some gateway-readable folder in your server. Then use the approach described here to fill in the data and deliver the file:
A suggestion - there are lots of great tools that can display this data super well without having to worry about all the excel formatting and troubleshooting. PowerBI, Graphana, Ignition, etc... I have found it much easier to share a link to something I know will work rather than a csv/excel. You may even find that making something once in one of the mentioned tools will take you the same or less time than doing it the excel route. Plus, the mentioned tools allow csv export if anyone whats to do further analysis.
Do you have a licence for the Reporting module?
Vision, Perspective and Reporting can generate those sort of pages or reports on the fly. Why do you want an Excel file?
Yes, I have the license, but users need the data in Excel format, including raw data and charts, for more flexible analysis and easier usage. The issue with the Reporting module is that the chart appears on every page.