ManuB Report post Posted April 24, 2009 Hi ! Is there a way to have php api doc for Gantt FusionChart ? or a sample to use FusionChart Gantt Method like addGanttCategory(), addGanttProcess(),... Thanks for your helps,* Regards... ManuB Share this post Link to post Share on other sites
FusionCharts Support Report post Posted April 25, 2009 Hi, I am afraid, as of now we do not provide API for gantt chart. Share this post Link to post Share on other sites
ManuB Report post Posted April 25, 2009 Hi, I'm surprised, when i see FusionCharts_Gen.php file in FusionChartFree Gannt methode are there but no documention to use them. ###################### GANTT CHART (start) ###################################### # ----------- Public Functions ----------------------------------------------- # Function addCategory adding Category and vLine element function addGanttCategorySet($catParam=""){ $this->GT_categories_Counter++; $this->GT_categories[$this->GT_categories_Counter]= array(); $strParam=""; # cheking catParam not blank if($catParam!=""){ $strParam = $this->ConvertParamToXMLAttribute($catParam); } $this->GT_categoriesParam[$this->GT_categories_Counter]=$strParam; } # Function addGanttCategory adding Category function addGanttCategory($label="",$catParam=""){ $strCatXML=""; $strParam=""; # cheking catParam not blank if($catParam!=""){ $strParam = $this->ConvertParamToXMLAttribute($catParam); } # adding label and parameter set to category $strCatXML =""; # storing into GT_categories array $this->GT_categories[$this->GT_categories_Counter][$this->GT_subcategories_Counter]=$strCatXML; # Increase Counter $this->GT_subcategories_Counter++; } # Setting Process Parameter into categoriesParam variables function setGanttProcessesParams($strParam){ $this->GT_processes_Param .= $this->ConvertParamToXMLAttribute($strParam); } # Function addGanttProcess adding Process function addGanttProcess($label="",$catParam=""){ $strCatXML=""; $strParam=""; # cheking catParam not blank if($catParam!=""){ $strParam = $this->ConvertParamToXMLAttribute($catParam); } # adding label and parameter set to category $strCatXML =""; # storing into categoryNames array $this->GT_processes[$this->GT_processes_Counter]=$strCatXML; # Increase Counter $this->GT_processes_Counter++; } # Setting Tasks Parameter into TaskParam variables function setGanttTasksParams($strParam){ $this->GT_Tasks_Param .= $this->ConvertParamToXMLAttribute($strParam); } # Function addGanttTasks adding Tasks function addGanttTask($label="",$catParam=""){ $strCatXML=""; $strParam=""; # cheking catParam not blank if($catParam!=""){ $strParam = $this->ConvertParamToXMLAttribute($catParam); } # adding label and parameter set to category $strCatXML =""; # storing into GT_Tasks array $this->GT_Tasks[$this->GT_Tasks_Counter]=$strCatXML; # Increase Counter $this->GT_Tasks_Counter++; } Maybe this methodes are only there for an internal usage. It would be great that we are able to use them directly. Best Regards. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted April 27, 2009 Hi, These functions are put for future development. We have not documented it. You can use these though to some extent. Share this post Link to post Share on other sites