fix(plugin-chart-echarts): enable animation to clear old nodes (#1200)

* fix(plugin-chart-echarts): enable animation to clear old nodes

* use same color scheme as rest of dashboard
This commit is contained in:
Ville Brofeldt
2021-07-02 16:01:47 +03:00
committed by Yongjie Zhao
parent 895d9d325d
commit f27c2ee528

View File

@@ -205,7 +205,7 @@ export default function transformProps(
colorSaturation: COLOR_SATURATION,
itemStyle: {
borderColor: BORDER_COLOR,
color: colorFn(`${child.name}_${depth}`),
color: colorFn(`${child.name}`),
borderWidth: BORDER_WIDTH,
gapWidth: GAP_WIDTH,
},
@@ -248,7 +248,6 @@ export default function transformProps(
const series: TreemapSeriesOption[] = [
{
type: 'treemap',
animation: false,
width: '100%',
height: '100%',
nodeClick: undefined,