Is there a preferred library or tool for generating charts and graphs in PHP, especially for displaying percentage distributions like in a pie chart?

When generating charts and graphs in PHP, one popular library for displaying percentage distributions like in a pie chart is the Google Charts API. This API allows you to easily create interactive and customizable charts that can be embedded in web pages. By using the Google Charts API, you can generate pie charts with percentage distributions to visually represent data in an engaging way.

<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript">
        google.charts.load('current', {'packages':['corechart']});
        google.charts.setOnLoadCallback(drawChart);

        function drawChart() {
            var data = google.visualization.arrayToDataTable([
                ['Task', 'Hours per Day'],
                ['Work',     11],
                ['Eat',      2],
                ['Commute',  2],
                ['Watch TV', 2],
                ['Sleep',    7]
            ]);

            var options = {
                title: 'My Daily Activities',
                is3D: true,
            };

            var chart = new google.visualization.PieChart(document.getElementById('piechart_3d'));
            chart.draw(data, options);
        }
    </script>
</head>
<body>
    <div id="piechart_3d" style="width: 900px; height: 500px;"></div>
</body>
</html>