PHP code example of chuano / fpdf-circle-charts
1. Go to this page and download the library: Download chuano/fpdf-circle-charts library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chuano / fpdf-circle-charts example snippets
$pdf = new FPDFCircleCharts();
$pdf->AddPage();
// Chart width and height
$width = 190;
// Padding inside chart box
$padding = 10;
// Percentage completed
$percentage = 75;
// Draw the chart
$pdf->CircleChart($width, $padding, $percentage);
// Output
$pdf->Output();