This is an automated email from the ASF dual-hosted git repository.

yongjiezhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new bd6037ef50 fix(treemap-v2): color scheme not work when there is only 
one dimension (#20671)
bd6037ef50 is described below

commit bd6037ef50a579c9e9e3a133482670f6acb5fe5f
Author: Stephen Liu <[email protected]>
AuthorDate: Wed Jul 13 16:06:44 2022 +0800

    fix(treemap-v2): color scheme not work when there is only one dimension 
(#20671)
---
 .../plugins/plugin-chart-echarts/src/Treemap/transformProps.ts           | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts 
b/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts
index 5dd7d55467..6c98453fee 100644
--- 
a/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts
+++ 
b/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts
@@ -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,
       },

Reply via email to