<?php
/**
 * Content - Piecharts Template
 *
 * This template can be overridden by copying it to mytheme/addons-for-elementor/addons/piecharts/content.php
 *
 */

if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

$bar_color = ' data-bar-color="' . esc_attr($settings['bar_color']) . '"';
$track_color = ' data-track-color="' . esc_attr($settings['track_color']) . '"';

?>

<div class="tfl-grid-item tfl-piechart">

    <div class="tfl-percentage" <?php echo $bar_color; ?> <?php echo $track_color; ?>
         data-percent="<?php echo round($piechart['percentage_value']); ?>">

        <span><?php echo round($piechart['percentage_value']); ?><sup>%</sup></span>

    </div>

    <div class="tfl-label"><?php echo esc_html($piechart['stats_title']); ?></div>

</div><!-- .tfl-piechart -->