The following example demonstrates how to export a chart to HTML and MHT files.
To export the chart, use the appropriate ExportTo~ method (e.g., ExportToHtml, ExportToPdf, etc.)