feat:【mall 商城】会员统计【antd】10% 初始化

This commit is contained in:
YunaiV
2025-10-19 18:40:27 +08:00
parent bd9d8376c2
commit fe62992d78
5 changed files with 386 additions and 25 deletions

View File

@@ -0,0 +1,35 @@
import type { EChartsOption } from 'echarts';
interface ChartData {
name: string;
value: number;
}
/** 会员性别比例图表配置 */
export function getSexChartOptions(data: ChartData[]): EChartsOption {
return {
tooltip: {
trigger: 'item',
confine: true,
formatter: '{a} <br/>{b} : {c} ({d}%)',
},
legend: {
orient: 'vertical',
left: 'right',
},
series: [
{
name: '会员性别',
type: 'pie',
roseType: 'area',
label: {
show: false,
},
labelLine: {
show: false,
},
data,
},
],
};
}