Lines Matching refs:options

179   function loadFile( url, holder, options, providerKey ) {  argument
186 if ( options.showCurtain )
187 showCurtain( undefined, options.noStyles );
197 …if ( options.progress !== undefined && typeof( options.progress ) === 'function' && options._progr…
198 options._progress = options.progress;
199 options.progress = function( percent ) {
215 options._progress.call( this, globalPercent, Math.round( percent * 100 ) / 100, url );
220 AmCharts.loadFile( url, options, function( response ) {
224 callFunction( options.error, options, chart );
225 …raiseError( AmCharts.__( 'Error loading the file', chart.language ) + ': ' + url, false, options );
229 if ( undefined === options.format ) {
231 options.format = 'json';
235 options.format = options.format.toLowerCase();
238 switch ( options.format ) {
245 callFunction( options.error, options, chart );
246 …seError( AmCharts.__( 'Error parsing JSON file', chart.language ) + ': ' + l.url, false, options );
250 holder[ providerKey ] = postprocess( holder[ providerKey ], options );
251 callFunction( options.load, options, chart );
258 holder[ providerKey ] = AmCharts.parseCSV( response, options );
261 callFunction( options.error, options, chart );
262 …iseError( AmCharts.__( 'Error parsing CSV file', chart.language ) + ': ' + l.url, false, options );
266 holder[ providerKey ] = postprocess( holder[ providerKey ], options );
267 callFunction( options.load, options, chart );
273 callFunction( options.error, options, chart );
274 …rts.__( 'Unsupported data format', chart.language ) + ': ' + options.format, false, options.noStyl…
285 callFunction( options.complete, chart );
288 if ( options.async ) {
305 … if ( 'stock' === chart.type && !options.reloading && undefined !== chart.periodSelector ) {
351 if ( options.reload ) {
353 if ( options.timeout )
354 clearTimeout( options.timeout );
356 options.timeout = setTimeout( loadFile, 1000 * options.reload, url, holder, options );
357 options.reloading = true;
370 function postprocess( data, options ) { argument
371 if ( undefined !== options.postProcess && isFunction( options.postProcess ) )
373 return options.postProcess.call( l, data, options, chart );
375 …eError( AmCharts.__( 'Error loading file', chart.language ) + ': ' + options.url, false, options );
416 function raiseError( msg, error, options ) { argument
418 if ( options.showErrors )
419 showCurtain( msg, options.noStyles );
509 AmCharts.loadFile = function( url, options, handler ) { argument
512 if ( typeof( options ) !== 'object' )
513 options = {};
514 if ( options.async === undefined )
515 options.async = true;
529 request.open( 'GET', options.timestamp ? AmCharts.timestampUrl( url ) : url, options.async );
535 if ( options.headers !== undefined && options.headers.length ) {
536 for ( var i = 0; i < options.headers.length; i++ ) {
537 var header = options.headers[ i ];
543 if ( options.progress !== undefined && typeof( options.progress ) === 'function' ) {
546 options.progress.call( this, complete );
587 AmCharts.parseCSV = function( response, options ) { argument
590 var data = AmCharts.CSVToArray( response, options.delimiter );
598 if ( options.useColumnNames ) {
613 if ( 0 < options.skip )
614 options.skip--;
618 for ( i = 0; i < options.skip; i++ )
623 while ( ( row = options.reverse ? data.pop() : data.shift() ) ) {
624 if ( options.skipEmpty && row.length === 1 && row[ 0 ] === '' )
629 dataPoint[ col ] = row[ i ] === "" ? options.emptyAs : row[ i ];