You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
113 KiB
Plaintext

11 months ago
/*!
* FusionCharts JavaScript Library
* Copyright FusionCharts Technologies LLP
* @license License Information at <http://www.fusioncharts.com/license>
*
* @author FusionCharts
* @version 3.2.1-release
*
* Third-party attributions:
* SWFObject v2.2 <http://code.google.com/p/swfobject/>
* JSON v2 <http://www.JSON.org/js.html>
* Firebug Lite 1.3.0 <http://getfirebug.com/firebuglite>
* jQuery 1.4.2 <http://jquery.com/>
*/
(function(){if(typeof window.FusionCharts!=='undefined'){return}var f={},modules={},argsT=['swfUrl','id','width','height','debugMode','registerWithJS','bgColor','scaleMode','lang','detectFlashVersion','autoInstallRedirect'];f.extend=function(a,b){var c=typeof arguments[arguments.length-1]==='boolean'?arguments[arguments.length-1]:false;var d=b,snk=a;if(typeof b==='boolean'||arguments.length===1){snk=f.core;d=a}if(c===true){snk=snk.prototype}for(var e in d){snk[e]=d[e]}return snk};f.uniqueId=function(){return'chartobject-'+(f.uniqueId.lastId+=1)};f.uniqueId.lastId=0;f.policies={options:{product:['product','v3'],insertMode:['insertMode','replace'],safeMode:['safeMode',true],overlayButton:['overlayButton',undefined]},attributes:{lang:['lang','EN'],'class':['className','FusionCharts']},width:['width','400'],height:['height','300'],src:['swfUrl',''],__state:{}};f.parsePolicies=function(a,b,c){var d,policy,value;for(policy in b){if(f.policies[policy]instanceof Array){value=c[b[policy][0]];a[policy]=value===undefined?b[policy][1]:value;continue}if(typeof a[policy]!=='object'){a[policy]={}}for(d in b[policy]){value=c[b[policy][d][0]];a[policy][d]=value===undefined?b[policy][d][1]:value}}};f.core=function(a){if(!(this instanceof f.core)){if(arguments.length===1&&a instanceof Array&&a[0]==='private'){if(modules[a[1]]===true){return undefined}modules[a[1]]=true;return f}if(arguments.length===1&&typeof a==='string'){return f.core.items[a]}f.raiseError(this,'25081840','run','',new SyntaxError("Use the \"new\" keyword while creating a new FusionCharts object"))}var b={},prop;if(arguments.length===1&&typeof arguments[0]==='object'){b=arguments[0]}else{for(prop in argsT){b[argsT[prop]]=arguments[prop]}}if(typeof arguments[arguments.length-1]==='object'){delete b[arguments.length-1];f.extend(b,arguments[arguments.length-1])}this.id=typeof b.id==='undefined'?this.id=f.uniqueId():b.id;this.args=b;if(f.core.items[this.id]instanceof f.core){this.id=f.uniqueId();f.raiseWarning(this,'06091847','param','','A FusionChart oject with the specified id \"'+this.id+'\" already exists. Renaming it to '+this.id)}f.parsePolicies(this,f.policies,b);this.resizeTo(b.width,b.height,true);f.raiseEvent('BeforeInitialize',b,this);f.core.items[this.id]=this;f.raiseEvent('Initialized',b,this);return this};f.core.prototype={};f.core.prototype.constructor=f.core;f.extend({id:'FusionCharts',version:[3,2,1,'release',1750],items:{},options:{},getObjectReference:function(a){return f.core.items[a].ref}},false);window.FusionCharts=f.core}());(function(){var f=FusionCharts(['private','EventManager']);if(f===undefined){return}window.FusionChartsEvents={BeforeInitialize:'beforeinitialize',Initialized:'initialized',Loaded:'loaded',Rendered:'rendered',DataLoadRequested:'dataloadrequested',DataLoadRequestCancelled:'dataloadrequestcancelled',DataLoadRequestCompleted:'dataloadrequestcompleted',BeforeDataUpdate:'beforedataupdate',DataUpdateCancelled:'dataupdatecancelled',DataUpdated:'dataupdated',DataLoadCancelled:'dataloadcancelled',DataLoaded:'dataloaded',DataLoadError:'dataloaderror',NoDataToDisplay:'nodatatodisplay',DataXMLInvalid:'dataxmlinvalid',InvalidDataError:'invaliddataerror',DrawComplete:'drawcomplete',Resized:'resized',BeforeDispose:'beforedispose',Disposed:'disposed'};var g=function(a,b,c,d){try{a[0].call(b,c,d||{})}catch(e){setTimeout(function(){throw e;},0)}};var h=function(a,b,c){if(!(a instanceof Array)){return}var i=0,scope;for(;i<a.length;i+=1){if(a[i][1]===b.sender||a[i][1]===undefined){scope=a[i][1]===b.sender?b.sender:f.core;g(a[i],scope,b,c)}if(b.cancel===true){break}}};var j={listeners:{},lastEventId:0,addListener:function(a,b,c){if(a instanceof Array){for(var i=0;i<a.length;i+=1){j.addListener(a[i],b,c)}return}if(typeof a!=='string'){f.raiseError(this,'03091549','param','::EventTarget.addListener',new Error('Unspecified Event Type'));return}if(typeof b!=='function'){f.raiseError(this,'03091550','param','::EventTarget.addListener',new Error('Invalid Event Listener'));return}a=a.toLowerCase();if(!(j.listeners[a]instanceof Array)){j.listeners[a]=[]}j.list