feat: Add ValuePercent option to LABEL TYPE for Pie and Funnel charts (#26407)

This commit is contained in:
周小馬
2024-01-05 05:00:27 +08:00
committed by GitHub
parent dfde2adf27
commit 3a7d76cece
6 changed files with 11 additions and 0 deletions

View File

@@ -94,6 +94,8 @@ export function formatFunnelLabel({
return `${name}: ${formattedValue} (${formattedPercent})`;
case EchartsFunnelLabelTypeType.KeyPercent:
return `${name}: ${formattedPercent}`;
case EchartsFunnelLabelTypeType.ValuePercent:
return `${formattedValue} (${formattedPercent})`;
default:
return name;
}