UNPKG

highcharts

Version:
75 lines (74 loc) 2.65 kB
/*!* * * Copyright (c) Highsoft AS. All rights reserved. * *!*/ import * as globals from "../globals.src"; import * as _Highcharts from "../highcharts.src"; declare module "../highcharts.src" { class Exporting { /** * Generates a data URL of CSV for local download in the browser. This * is the default action for a click on the 'Download CSV' button. * * See Highcharts.Exporting#getCSV to get the CSV data itself. */ downloadCSV(): void; /** * Generates a data URL of an XLS document for local download in the * browser. This is the default action for a click on the 'Download XLS' * button. * * See Highcharts.Exporting#getTable to get the table data itself. */ downloadXLS(): void; /** * Returns the current chart data as a CSV string. * * @param useLocalDecimalPoint * Whether to use the local decimal point as detected from the * browser. This makes it easier to export data to Excel in the * same locale as the user is. * * @return CSV representation of the data. */ getCSV(useLocalDecimalPoint?: boolean): string; /** * Returns a two-dimensional array containing the current chart data. * * @param multiLevelHeaders * Use multilevel headers for the rows by default. Adds an extra * row with top level headers. If a custom columnHeaderFormatter * is defined, this can override the behavior. * * @return The current chart data * * @fires Highcharts.Chart#exportData */ getDataRows(multiLevelHeaders?: boolean): Array<Array<(number|string)>>; /** * Build a HTML table with the chart's current data. * * @param useLocalDecimalPoint * Whether to use the local decimal point as detected from the * browser. This makes it easier to export data to Excel in the * same locale as the user is. * * @return HTML representation of the data. * * @fires Highcharts.Chart#afterGetTable */ getTable(useLocalDecimalPoint?: boolean): string; /** * Hide the data table when visible. */ hideData(): void; /** * View the data in a table below the chart. * * @fires Highcharts.Chart#afterViewData */ viewData(): void; } } export default _Highcharts;