Re: Pie chart legend size
Hello
I work around in this way:
Code:
$legParms = array("Style"=>LEGEND_ROUND,"Mode"=>LEGEND_VERTICAL);
$maxLabelWidth = 0; // search legend width
foreach($dt->getValues("Labels") as $v) {
$dt->setSerieDescription($legend,$v);
$Size = $graph->getLegendSize($legParms);
$maxLabelWidth = max($maxLabelWidth,$Size["Width"]);
}
$dt->setSerieDescription($legend,$legend); // Restore original legend
$legend is a variable wich contains the data name
this fragment is part of my pChart "wrapper"
best regards
John Rossati