$top_term_revenue ) { $top_term_revenue = (float) $tax['revenue']; $top_term_name = $tax['name']; } } } ?>
__( 'All', '360-analytics-for-woocommerce' ), 'authors' => __( 'Authors', '360-analytics-for-woocommerce' ), 'languages' => __( 'Languages', '360-analytics-for-woocommerce' ), 'publishers' => __( 'Publishers', '360-analytics-for-woocommerce' ), 'translator' => __( 'Translator', '360-analytics-for-woocommerce' ), 'brands' => __( 'Brands', '360-analytics-for-woocommerce' ), 'categories' => __( 'Categories', '360-analytics-for-woocommerce' ), 'tags' => __( 'Tags', '360-analytics-for-woocommerce' ), ); ?>
$tax_label ) : $is_active = ( $current_tax === $tax_key ); $btn_bg = $is_active ? 'var(--anfowo-primary-light)' : 'transparent'; $btn_color = $is_active ? 'var(--anfowo-primary)' : 'var(--anfowo-text-muted)'; $font_wt = $is_active ? '600' : '500'; ?>

-

    $tax ) { $percent = $total_revenue > 0 ? round( ( $tax['revenue'] / $total_revenue ) * 100, 1 ) : 0; $colors = array( '#4f46e5', '#10b981', '#f59e0b', '#ec4899', '#3b82f6' ); $bar_color = $colors[ $index % count( $colors ) ]; ?>
  • %
>