function render() { global $osC_Language; $pie_chart = new toC_Flash_Pie('', null, null, '{display:none}'); $pie_chart->setData($this->data); $pie_chart->setWidth(120); $pie_chart->setHeight(120); if (is_array($this->data) && sizeof($this->data) > 0) { echo '<span style="float:left;">'; echo $pie_chart->render(); echo '</span>'; echo '<span style="float:left;padding-left:20px;padding-top:10px;line-height:30px">'; $i = 0; foreach ($this->data as $label => $value) { echo '<font style="background-color:' . $pie_chart->pie_slice_colours[$i % 12] . '"> </font> ' . $label . '<br/>'; $i++; } echo '</span>'; } }