Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/main/amcharts/3.21/ |
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/main/amcharts/3.21/gantt.min.js |
(function(){var t=window.AmCharts;t.AmGanttChart=t.Class({inherits:t.AmSerialChart,construct:function(a){this.type="gantt";t.AmGanttChart.base.construct.call(this,a);this.cname="AmGanttChart";this.period="ss";this.maxZoomFactor=1e6},initChart:function(){this.dataChanged&&this.processGanttData();t.AmGanttChart.base.initChart.call(this)},parseData:function(){t.AmSerialChart.base.parseData.call(this);this.parseSerialData(this.ganttDataProvider)},processGanttData:function(){var a;this.graphs=[];var i=this.dataProvider;this.ganttDataProvider=[];var e=this.categoryField,s=this.startField,r=this.endField,o=this.durationField,l=this.startDateField,h=this.endDateField,n=this.colorField,m=t.extractPeriod(this.period),u=m.period,m=m.count,c=t.getDate(this.startDate,this.dataDateFormat,"fff");this.categoryAxis.gridPosition="start";a=this.valueAxis;this.valueAxes=[a];var d;"date"==a.type&&(d=!0);a.minimumDate&&(a.minimumDate=t.getDate(a.minimumDate,g,u));a.maximumDate&&(a.maximumDate=t.getDate(a.maximumDate,g,u));isNaN(a.minimum)||(a.minimumDate=t.changeDate(new Date(c),u,a.minimum,!0,!0));isNaN(a.maximum)||(a.maximumDate=t.changeDate(new Date(c),u,a.maximum,!0,!0));var g=this.dataDateFormat;if(i)for(a=0;a<i.length;a++){var D=i[a],p={};p[e]=D[e];var f=D[this.segmentsField],v;this.ganttDataProvider.push(p);D=D[n];this.colors[a]||(this.colors[a]=t.randomColor());if(f)for(var C=0;C<f.length;C++){var F=f[C],N=F[s],b=F[r],x=F[o];isNaN(N)&&(N=v);isNaN(x)||(b=N+x);var x="start_"+a+"_"+C,A="end_"+a+"_"+C;p[x]=N;p[A]=b;var y="lineColor color alpha fillColors description bullet customBullet bulletSize bulletConfig url labelColor dashLength pattern gap className".split(" "),P,_;for(_ in y)P=y[_]+"Field",(v=this.graph[P])&&void 0!==F[v]&&(p[y[_]+"_"+a+"_"+C]=F[v]);v=b;if(d){P=t.getDate(F[l],g,u);var w=t.getDate(F[h],g,u);c&&(isNaN(N)||(P=t.changeDate(t.newDate(c,"fff"),u,N*m,!0,!0)),isNaN(b)||(w=t.changeDate(t.newDate(c,"fff"),u,b*m,!0,!0)));p[x]=P.getTime();p[A]=w.getTime()}b={};t.copyProperties(F,b);N={};t.copyProperties(this.graph,N,!0);for(_ in y)P=y[_]+"Field",this.graph[P]&&(N[P]=y[_]+"_"+a+"_"+C);N.customData=b;N.segmentData=F;N.labelFunction=this.graph.labelFunction;N.balloonFunction=this.graph.balloonFunction;N.customBullet=this.graph.customBullet;N.type="column";N.openField=x;N.valueField=A;N.clustered=!1;F[n]&&(D=F[n]);N.columnWidth=F[this.columnWidthField];void 0===D&&(D=this.colors[a]);(F=this.brightnessStep)&&(D=t.adjustLuminosity(D,C*F/100));void 0===this.graph.lineColor&&(N.lineColor=D);void 0===this.graph.fillColors&&(N.fillColors=D);this.graphs.push(N)}}}})})(); //# sourceMappingURL=gantt.map.js