I am using pChart2.0 to generate a very simple Chart by the example code. The pChart data set to add the points is in the following format
$MyData->addPoints(array("Type A","Type B","Type C"),"Types");
I have the following php array to use dynamic values
$type[0] = "Type A";
$type[1] = "Type C";
$type[2] = "Type D";
I tried it to use it like
$data = print_r($type, ',');
$MyData->addPoints(array($data),"Types");
Also tried implode function, but somehow pChart is not accepting the data-set and not generating the Chart. Any suggestions please ?