<div>
    <style>
        .highcharts-figure,
        .highcharts-data-table table {
            min-width: 320px;
            max-width: 800px;
            margin: 1em auto;
        }

        .highcharts-data-table table {
            font-family: Verdana, sans-serif;
            border-collapse: collapse;
            border: 1px solid #ebebeb;
            margin: 10px auto;
            text-align: center;
            width: 100%;
            max-width: 500px;
        }

        .highcharts-data-table caption {
            padding: 1em 0;
            font-size: 1.2em;
            color: #555;
        }

        .highcharts-data-table th {
            font-weight: 600;
            padding: 0.5em;
        }

        .highcharts-data-table td,
        .highcharts-data-table th,
        .highcharts-data-table caption {
            padding: 0.5em;
        }

        .highcharts-data-table thead tr,
        .highcharts-data-table tr:nth-child(even) {
            background: #f8f8f8;
        }

        .highcharts-data-table tr:hover {
            background: #f1f7ff;
        }

        input[type="number"] {
            min-width: 50px;
        }
    </style>

    <figure class="highcharts-figure">
        <div id="pieContainer<?php echo e($chart_data->title ?? 0); ?>"></div>
        <p class="highcharts-description">
            <?php echo e($chart_data->description ?? ''); ?>

        </p>
    </figure>
</div>

    <?php
        $__scriptKey = '3723901882-0';
        ob_start();
    ?>
<script>
    Highcharts.chart('pieContainer<?php echo e($chart_data->title ?? 0); ?>', {
        chart: {
            type: 'pie'
        },
        title: {
            text: '<?php echo e($chart_data->title ?? ''); ?>'
        },
        tooltip: {
            valueSuffix: '%'
        },
        subtitle: {
            text: '<?php echo e($chart_data->subtitle ?? ''); ?>'
        },
        plotOptions: {
            series: {
                allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: [{
                    enabled: true,
                    distance: 20
                }, {
                    enabled: true,
                    distance: -40,
                    format: '{point.percentage:.1f}%',
                    style: {
                        fontSize: '1.2em',
                        textOutline: 'none',
                        opacity: 0.7
                    },
                    filter: {
                        operator: '>',
                        property: 'percentage',
                        value: 10
                    }
                }]
            }
        },
        series: [
            {
                name: 'Percentage',
                colorByPoint: true,
                data: <?php echo e(Js::from($series)); ?>

            }
        ]
    });
</script>
    <?php
        $__output = ob_get_clean();

        \Livewire\store($this)->push('scripts', $__output, $__scriptKey)
    ?>
<?php /**PATH C:\laragon\www\marketing_data_analysis\resources\views/livewire/charts/pie-chart.blade.php ENDPATH**/ ?>