2 Commits

Author SHA1 Message Date
WDEP
ea2617ef32 Merge 522ad09ebf into 08705c9d3b 2025-05-14 14:05:05 +08:00
WDEP
522ad09ebf (fix)(chat-sdk)Fix the pie chart display conditions 2025-05-14 13:56:28 +08:00

View File

@@ -122,7 +122,7 @@ const ChatMsg: React.FC<Props> = ({
}
const isMetricPie =
metricFields.length > 0 &&
categoryField.length > 0 &&
metricFields?.length === 1 &&
(isMobile ? dataSource?.length <= 5 : dataSource?.length <= 10) &&
dataSource.every(item => item[metricFields[0].bizName] > 0);