Wijmo UI for the Web
exportChart Method
wijmo.chart Namespace > wijlinechart type : exportChart Method
1.The name of the exported file. 2.Settings of exporting, should be conformed to wijmo.exporter.ChartExportSetting
The type of the exported file.
The setting of pdf.
The export service url.
with different mode, 1. "Content" Sending chart markup to the service for exporting. It requires IE9 or high version installed on the service host. It has better performance than Options mode. 2. "Options" Sending chart widget options to the service for exporting.
Exports the chart in a graphic format. The export method only works when wijmo.exporter.chartExport's reference is on the page.
Syntax
$(function () {
    var returnsValue; // Type:  any
    // Parameters
    var exportSettings; // Type:  undefined
    var type; // Type:  undefined
    var pdfSettings; // Type:  undefined
    var serviceUrl; // Type:  undefined
    var exportMethod; // Type:  undefined
    
    returnsValue = $(".selector").wijlinechart("exportChart", exportSettings, type, pdfSettings, serviceUrl, exportMethod);
});
function exportChart( 
   exportSettings : undefined,
   type : undefined,
   pdfSettings : undefined,
   serviceUrl : undefined,
   exportMethod : undefined
) : any;

Parameters

exportSettings
1.The name of the exported file. 2.Settings of exporting, should be conformed to wijmo.exporter.ChartExportSetting
type
The type of the exported file.
pdfSettings
The setting of pdf.
serviceUrl
The export service url.
exportMethod
with different mode, 1. "Content" Sending chart markup to the service for exporting. It requires IE9 or high version installed on the service host. It has better performance than Options mode. 2. "Options" Sending chart widget options to the service for exporting.
Example
$("#chartcore").wijchartcore("exportChart", "chart", "png");
Remarks
Default exported file type is png, possible types are: jpg, png, gif, bmp, tiff, pdf.
See Also

Reference

wijlinechart type
wijlinechart jQuery Widget