Export Chart as PNG, JPG, SVG, PDF document, Excel document or Word document.
var chart = $(".e-datavisualization-chart").ejChart("instance"); var exportSettings = chart.model.exportSettings; exportSettings.fileName = "Chart"; exportSettings.angle = "90"; exportSettings.type = "png"; exportSettings.mode = 'server'; exportSettings.action = window.baseurl+'api/JSChartExport/ExportChart'; data = chart.export();
Response (PNG, JPG, SVG, PDF, Word or Excel):
Status Code: 200
Browser will prompt a dialog box to save the file (image or document).
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page