/* * Creates a chart using XML configuration. * @example anychart.fromXmlFile * @param {string} url Link to XML file * @param {string|Function=} opt_onSuccessOrContainer The function that is launched after chart is successfully loaded * @param {Function=} opt_onError The function that is launched if chart loading fails * @param {string=} opt_method Send method * @param {ArrayBuffer|ArrayBufferView|Blob|Document|FormData|string=} opt_content Data * @param {Object=} opt_headers Headers to add to the request * @param {number=} opt_timeoutInterval Number of milliseconds after which an incomplete request is aborted * @param {boolean=} opt_withCredentials Whether to send credentials with the request * @param {=} opt_context Context for handler function * @since 7.11.1 */ anychart.fromXmlFile;
/* * Creates a chart from JSON configuration. * @example anychart.fromJsonFile * @param {string} url Link to JSON file * @param {string|Function=} opt_onSuccessOrContainer The function that is launched after chart is successfully loaded * @param {Function=} opt_onError The function that is launched if chart loading fails * @param {string=} opt_method Send method * @param {ArrayBuffer|ArrayBufferView|Blob|Document|FormData|string=} opt_content Data * @param {Object=} opt_headers Headers to add to the request * @param {number=} opt_timeoutInterval Number of milliseconds after which an incomplete request is aborted * @param {boolean=} opt_withCredentials Whether to send credentials with the request * @param {=} opt_context Context for handler function * @since 7.11.1 */ anychart.fromJsonFile;
/** * Parses HTML table to table data. * @example anychart.data.parseHtmlTable * @param {string=} opt_tableSelector CSS table selector * @param {string=} opt_rowsSelector Rows selector in the CSS table * @param {string=} opt_cellsSelector Cells selector in the CSS table * @param {string=} opt_headersSelector Header selector in the CSS table * @param {string=} opt_captionSelector Caption selector in the CSS table * @param {Function=} opt_valueProcessor Function that converts values from a table * @return {anychart.data.DataSettings} Returns data settings. * @since 7.11.1 */ anychart.data.parseHtmlTable;
/* * Loads the JSON file. * @detailed To work with the data adapter you need to reference the data adapter script file from AnyChart CDN * (https://cdn.anychart.com/releases/{{branch-name}}/js/anychart-data-adapter.min.js for latest or https://cdn.anychart.com/releases/{{branch-name}}/js/anychart-data-adapter.min.js for the versioned file) * @example anychart.data.loadJsonFile * @param {string} url URL of a JSON file or a script. * @param {OnSuccessLoadJsonFile} onSuccess The function that is launched after chart is successfully loaded. * Takes resulting data object parsed from response string as an argument. * @param {OnErrorLoadJsonFile=} opt_onError Function that is called if loading fails. Takes * an error code as first argument and exception object or error message as the second argument. * @param {string=} opt_method Send method * @param {ArrayBuffer|ArrayBufferView|Blob|Document|FormData|string=} opt_content Data. * @param {Object=} opt_headers Headers to add to the request * @param {number=} opt_timeoutInterval Number of milliseconds after which an incomplete request is aborted * @param {boolean=} opt_withCredentials Whether to send credentials with the request * @param {=} opt_context Context for handler function * @since 7.11.1 */ anychart.data.loadJsonFile;
/* * Loads the XML file. * @detailed To work with the data adapter you need to reference the data adapter script file from AnyChart CDN * (https://cdn.anychart.com/releases/{{branch-name}}/js/anychart-data-adapter.min.js for latest or https://cdn.anychart.com/releases/{{branch-name}}/js/anychart-data-adapter.min.js for the versioned file) * @example anychart.data.loadXmlFile * @param {string} url URL of an XML file or a script * @param {OnSuccessLoadXmlFile} onSuccess The function that is launched after chart is successfully loaded. * Takes resulting data object parsed from response string as an argument. * @param {OnErrorExceptionMessage=} opt_onError Function that is called if loading fails. Takes * an error code as first argument and exception object or error message as the second argument. * @param {string=} opt_method Send method * @param {ArrayBuffer|ArrayBufferView|Blob|Document|FormData|string=} opt_content Data * @param {Object=} opt_headers Headers to add to the request * @param {number=} opt_timeoutInterval Number of milliseconds after which an incomplete request is aborted. * @param {boolean=} opt_withCredentials Whether to send credentials with the request * @param {=} opt_context Context for handler function * @since 7.11.1 */ anychart.data.loadXmlFile;
/* * Loads the CSV file. * @detailed To work with the data adapter you need to reference the data adapter script file from AnyChart CDN * (https://cdn.anychart.com/releases/{{branch-name}}/js/anychart-data-adapter.min.js for latest or https://cdn.anychart.com/releases/{{branch-name}}/js/anychart-data-adapter.min.js for the versioned file) * @example anychart.data.loadCsvFile * @param {string} url URL of an CSV file or a script * @param {OnSuccessLoadCsvFile} onSuccess The function that is launched after chart is successfully loaded. * Takes resulting data object parsed from response string as an argument. * @param {OnErrorExceptionMessage=} opt_onError Function that is called if loading fails. Takes * an error code as first argument and exception object or error message as the second argument. * @param {string=} opt_method Send method * @param {ArrayBuffer|ArrayBufferView|Blob|Document|FormData|string=} opt_content Data * @param {Object=} opt_headers Headers to add to the request * @param {number=} opt_timeoutInterval Number of milliseconds after which an incomplete request is aborted * @param {boolean=} opt_withCredentials Whether to send credentials with the request * @param {=} opt_context Context for handler function * @since 7.11.1 */ anychart.data.loadCsvFile;
/* * Loads the Google Spreadsheets. * {docs:Working_with_Data/Data_Adapter/Loading_Google_Spreadsheet}Learn more about loading Google Spreadsheet{docs} * @detailed To work with the data adapter you need to reference the data adapter script file from AnyChart CDN * (https://cdn.anychart.com/releases/{{branch-name}}/js/anychart-data-adapter.min.js for latest or https://cdn.anychart.com/releases/{{branch-name}}/js/anychart-data-adapter.min.js for the versioned file) * @example anychart.data.loadGoogleSpreadsheet * @param {string|Object} key Google Spreadsheet key. * @param {OnSuccessLoadGoogleSpreadsheet} onSuccess The function that is launched after chart is successfully loaded. * Takes resulting data object parsed from response string as an argument. * @param {Function=} opt_onError The function that is launched if chart loading fails. * @param {number=} opt_timeoutInterval Number of milliseconds after which an incomplete request is aborted. * @param {=} opt_context Context for handler function. * @since 7.11.1 */ anychart.data.loadGoogleSpreadsheet;