I cannot change the color of the percentage of the pie chart. I want the color to be black but it does not work.
This is where I am setting the default font settings. The RGB values are already 0.
$myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>15,"R"=>0,"G"=>0,"B"=>0));
this is the pie chart
$PieChart->draw2DPie(320,350,array("Radius"=>250,"LabelColor"=>PIE_LABEL_COLOR_MANUAL,"WriteValues"=>PIE_VALUE_PERCENTAGE,"DataGapAngle"=>10,"DataGapRadius"=>6,"Border"=>TRUE,"BorderR"=>255,"BorderG"=>255,"BorderB"=>255));
How can I fix this? Thank you.
It's not the most obvious documentation for this on pChart website:
Notice the
LabelR, so whereas it's normally the:In this instance you must prefix them with 'Label'