总销售额

¥" . number_format($total_sales['total_amount'], 2) . "
"; echo "
= 0 ? 'positive' : 'negative') . "'>"; echo ($total_sales['growth'] >= 0 ? '+' : '') . number_format($total_sales['growth'], 2) . "%
"; ?>

活跃国家数

" . $active_countries['count'] . "
"; ?>

平均订单金额

¥" . number_format($avg_order['global_avg'], 2) . "
"; ?>
fetch_assoc()) { $country_labels[] = $row['countryName']; $country_data[] = $row['customer_count']; } renderCustomerCountryDistributionChart($country_labels, $country_data); ?>
fetch_assoc()) { $region_labels[] = $row['countryName']; $region_order_counts[] = $row['order_count']; $region_quantities[] = $row['total_quantity']; } renderRegionOrdersChart($region_labels, $region_order_counts, $region_quantities); ?>