You are viewing documentation for an older version. For current documentation - click here.
Delimiter is the character used to separate two consecutive attributes within the chart attribute list. FusionCharts PHP Class API uses semicolon (;) as the default delimiter. To replace the default delimiter with a new character, simply call setParamDelimiter() function and pass the new delimiter character though it as shown in the code below:
 
$FC->setParamDelimiter("$");
 
Now you can use '$' as delimiter as shown in the following statements of your program:
 
$strParam="bgColor=CC66CC$canvasBgColor=BC6699$showBorder=1$borderColor=00FF00";
 
Consider the code below:

<?php

   # Include FusionCharts PHP Class
   include('class/FusionCharts_Gen.php');

   # Create FusionCharts PHP object
   $FC = new FusionCharts("MSColumn3DLineDY","350","300");
   # set the relative path of the SWF file
   $FC->setSWFPath("FusionCharts/");

   # Set chart attributes
   $strParam="caption=Weekly Sales;subcaption=Comparison;xAxisName=Week; pYAxisName=Revenue;sYAxisName=Total Quantity;decimalPrecision=0;";
   # Note that we have used semicolon (;) as the delimiter here   

   $FC->setChartParams($strParam);

...
...

   # Set colon (:) as delimiter
   $FC->setParamDelimiter(":");

   # Add a new dataset with dataset parameters
   $FC->addDataset("This Month","numberPrefix=$:showValues=0");
   # Please note that in the above line colon (:) has been used to separate consecutive attributes   
   # Add chart data for the above dataset
   $FC->addChartData("40800");
   $FC->addChartData("31400");
   $FC->addChartData("26700");
   $FC->addChartData("54400");

   # Set hash (#) as delimiter
   $FC->setParamDelimiter("#")
;

   # Add another dataset with dataset parameters
   $FC->addDataset("Previous Month","numberPrefix=$#showValues=0");
   # Please note that in the above line hash (#) has been used as delimiter)

   # Add chart data for the second dataset

   $FC->addChartData("38300");
   $FC->addChartData("28400");
   $FC->addChartData("15700");
   $FC->addChartData("48100");

...
...

<?php

   # Render Chart

   $FC->renderChart();

?>
</body>
</html>

The code shows how we can use different delimiters in our programs provided the delimiter is declared before being used.