fix(treemap-v2): color scheme not work when there is only one dimension (#20671)

This commit is contained in:
Stephen Liu
2022-07-13 16:06:44 +08:00
committed by GitHub
parent effa7d9f58
commit bd6037ef50

View File

@@ -240,6 +240,7 @@ export default function transformProps(
colorSaturation: COLOR_SATURATION,
itemStyle: {
borderColor: BORDER_COLOR,
color: colorFn(`${metricLabel}`, sliceId),
borderWidth: BORDER_WIDTH,
gapWidth: GAP_WIDTH,
},