Add exportChartLocal function for HighCharts (#9194)

This commit is contained in:
Andrew Fong
2016-05-05 10:33:40 -07:00
committed by Masahiro Wakame
parent 2eaeb872aa
commit 51baa79ead
2 changed files with 25 additions and 0 deletions

View File

@@ -2187,6 +2187,7 @@ function test_ChartObject() {
chart.destroy();
chart.drillUp();
chart.exportChart(<HighchartsExportingOptions>{}, <HighchartsOptions>{});
chart.exportChartLocal(<HighchartsExportingOptions>{}, <HighchartsOptions>{});
var object = chart.get('axisIdOrSeriesIdOrPointId');
var svg1 = chart.getSVG();
var svg2 = chart.getSVG(<HighchartsOptions>{});

View File

@@ -5681,6 +5681,30 @@ interface HighchartsChartObject {
* @since 2.0
*/
exportChart(options: HighchartsExportingOptions, chartOptions: HighchartsOptions): void;
/**
* Export the chart to a PNG or SVG without sending it to a server. Requires
* modules/exporting.js and modules/offline-exporting.js.
* @since 2.0
*/
exportChartLocal(): void;
/**
* Export the chart to a PNG or SVG without sending it to a server. Requires
* modules/exporting.js and modules/offline-exporting.js.
* @param {HighchartsExportingOptions} options Exporting options. Same as
* the exportChart params.
* @since 2.0
*/
exportChartLocal(options: HighchartsExportingOptions): void;
/**
* Export the chart to a PNG or SVG without sending it to a server.
* Requires modules/exporting.js and modules/offline-exporting.js.
* @param {HighchartsExportingOptions} options Exporting options. Same as
* the exportChart params.
* @param {HighchartsOptions} chartOptions Additional chart options for the
* exported chart. Same as the exportChart params.
* @since 2.0
*/
exportChartLocal(options: HighchartsExportingOptions, chartOptions: HighchartsOptions): void;
/**
* Get an axis, series or point by its id as given in the configuration options.
* @param {string} id The id of the axis, series or point to get.