New function in pChart class: getPieLegendBoxSize
Status: Beta
Brought to you by:
ayashisunyday
While it is possible to precalculate the size of the legends for line, bar etc charts, there so far exists no way to equally do this for legends of pie charts. The attached patch introduces a new function getPieLegendBoxSize which takes both the Data and DataDescription objects as parameters and calculates the size needed to display the chart legend.
It was created against a fresh download of the pChart distribution (version 1.27d).
getPieLegendBoxSize patch (diff -ruN)