Skip to content

Commit 5dd1b9d

Browse files
STARDEV06fit2-zhao
authored andcommitted
feat: chartOptimization
1 parent 6165a84 commit 5dd1b9d

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

frontend/packages/web/src/components/business/crm-view-select/components/chartsDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
},
298298
valueAxis: {
299299
fieldId: dataIndicator.value,
300-
aggregateMethod: aggregationMethod.value,
300+
aggregateMethod: dataIndicator.value === 'COUNT' ? 'COUNT' : aggregationMethod.value,
301301
},
302302
},
303303
});

frontend/packages/web/src/components/pure/crm-chart/useChart.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ export default function useChart(props: ChartProps) {
9696
color: getComputedStyle(document.documentElement).getPropertyValue('--text-n6').trim(),
9797
opacity: 0.1,
9898
},
99-
label: {
100-
show: true,
101-
backgroundColor: 'none',
102-
color: getComputedStyle(document.documentElement).getPropertyValue('--primary-8').trim(),
103-
},
10499
},
105100
formatter: (params: any) => {
106101
// 当trigger是'axis'时,params是数组

0 commit comments

Comments
 (0)