(function(){var b=window.AmCharts;b.AmGanttChart=b.Class({inherits:b.AmSerialChart,construct:function(a){this.type="gantt";b.AmGanttChart.base.construct.call(this,a);this.cname="AmGanttChart";this.period="ss";this.maxZoomFactor=1E6},initChart:function(){this.dataChanged&&this.processGanttData();b.AmGanttChart.base.initChart.call(this)},parseData:function(){b.AmSerialChart.base.parseData.call(this);this.parseSerialData(this.ganttDataProvider)},processGanttData:function(){var a;this.graphs=[];var v= this.dataProvider;this.ganttDataProvider=[];var z=this.categoryField,C=this.startField,D=this.endField,E=this.durationField,F=this.startDateField,G=this.endDateField,w=this.colorField,q=b.extractPeriod(this.period),f=q.period,q=q.count,r=b.getDate(this.startDate,this.dataDateFormat,"fff");this.categoryAxis.gridPosition="start";a=this.valueAxis;this.valueAxes=[a];var A;"date"==a.type&&(A=!0);a.minimumDate&&(a.minimumDate=b.getDate(a.minimumDate,u,f));a.maximumDate&&(a.maximumDate=b.getDate(a.maximumDate, u,f));isNaN(a.minimum)||(a.minimumDate=b.changeDate(new Date(r),f,a.minimum,!0,!0));isNaN(a.maximum)||(a.maximumDate=b.changeDate(new Date(r),f,a.maximum,!0,!0));var u=this.dataDateFormat;if(v)for(a=0;a