Hi Gurus,

I need some help fixing labels on a pie chart generated by openflashcharts I have

managed to get the segments populated but the labels are not working. Ideas are welcomed
    public function get_data_pie()
    {
        $this->load->plugin('ofc2');

        $title = new title( $title );

        $pie = new pie();
        $pie->set_alpha(0.6);
        $pie->set_start_angle( 35 );
        $pie->add_animation( new pie_fade() );
        $pie->set_tooltip( '#val# of #total#<br>#percent# of 100%' );
        $pie->set_colours( array('#1C9E05','#FF368D') );

$sql = mysql_query("SELECT gender, count(gender) AS number FROM students
GROUP BY gender");

$max = 0;
while($row = mysql_fetch_array($sql))
{
 $data[] = (intval($row['number']));
  $label[] = (intval($row['gender']));     to show "Male","Female" Labels on the respective segments
}
$pie->set_values( array(new pie_value($data,$label) );  this segment is what needs a patch
                
        $chart = new open_flash_chart();
        $chart->set_title( $title );
        $chart->add_element( $pie );


        $chart->x_axis = null;

        echo $chart->toPrettyString();
     }



--
Isaak Mogetutu