private function getPieDataSet($label, $data, $index = -1)
    {
        if ($index < 0) {
            $index = rand(0, count($this->pieData) - 1);
        }

        $set = $this->pieData[$index];
        $set['label'] = $label;
        $set['value'] = $data;

        return $set;
    }
private function getPieDataSet($label, $data, $index = -1)
    {
        if ($index < 0) {
            $index = rand(0, count($this->pieData) - 1);
        }

        $set = $this->pieData[$index];
        $set['label'] = $label;
        $set['value'] = $data;

        return $set;
    }
private function getPieDataSet ( $ label , $ data , $ index = - 1 ) { if ( $ index < 0 ) { $ index = rand ( 0 , count ( $ this -> pieData ) - 1 ) ; } $ set = $ this -> pieData [ $ index ] ; $ set [ 'label' ] = $ label ; $ set [ 'value' ] = $ data ; return $ set ; }
Get the pie chart data
@param     $label
@param     $data
@param int $index
@return mixed
Get the pie chart data