Should it be possible to set the colors of the pie chart labels? It seems that the setFontProperties should work to accomplish this task, and in this example I am trying to set it to a red color.
I have other setFontProperties in earlier lines of the script, but I am thinking that the values get replaced each time I set the array - which is what I want, because I want the properties to be used for a particular part of the chart (i.e. chart tile, legend, labels etc.)
Code:
/* Set the pie slice label properties - using FM XAxis properties */
$myPicture->setFontProperties(array("FontName"=>"../pChart/fonts/Verdana.ttf","FontSize"=>10, "R"=>255,"G"=>0,"B"=>0));
/* Draw the (3D) pie chart */
$PieChart->draw3DPie(231,176,array("Radius"=>132,"DrawLabels"=>TRUE,"DataGapAngle"=>0,"DataGapRadius"=>6,"Border"=>TRUE));
/* Render the picture (choose the best way) */
$myPicture->autoOutput('chart1.png');
I am using pChart 2.10.