Commit 836b2ecc by 前端

客户画像2.0

1 parent 9a2f3616
......@@ -48,8 +48,9 @@ export default {
},
createFormatter(params) {
const styleKey = 'style' + (params.dataIndex % this.colors.length);
return `{${styleKey}|${params.value}%}\n\n{b|${params.name}}`;
return `{${styleKey}|${params.value}%}\n\n{b|${params.name}${params.displayQuantity?(params.displayQuantity+ '人'): '' }}`;
},
drawChart() {
this.generateRichStyles(); // 生成动态样式
const chart = echarts.init(this.$refs.pieChart);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!