地区销售概览
总销售额
¥" . 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()) {
$region_labels[] = $row['countryName'];
$region_order_counts[] = $row['order_count'];
$region_quantities[] = $row['total_quantity'];
$region_amounts[] = $row['total_amount'];
}
renderTopRegionsTable($region_labels, $region_order_counts, $region_quantities, $region_amounts);
?>
客户国家分布
fetch_assoc()) {
$country_labels[] = $row['countryName'];
$country_data[] = $row['customer_count'];
}
renderCustomerCountryDistributionChart($country_labels, $country_data);
?>