public static function QuickDiv($size, $values) { $g = new TinyPie($size); foreach ($values as $value) { $g->AddValue($value[0], $value[1]); } return $g->GetAsDiv(); }
//math $num = $i / $total; $num = $num * 100; $num = round($num); $txt1 = array(); if ($num != 0) { array_push($txt1, $i); $g1->AddValue($num, $colores[$c]); } $c++; } $g1->SaveToFile("images/tmp/img1.png"); $img1 = "images/tmp/img1.png"; //End quejas por marca //status con la marca $g2 = new TinyPie($size); //math $num = 30 / $total; $num = $num * 100; $num = round($num); if ($num != 0) { $g2->AddValue($num, $colores[0]); } $num1 = $num; $num = 20 / $total; $num = $num * 100; $num = round($num); if ($num != 0) { $g2->AddValue($num, $colores[1]); } $num2 = $num;