Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
fix(plugin-chart-echarts): enable animation to clear old nodes (#1200)
Browse files Browse the repository at this point in the history
* fix(plugin-chart-echarts): enable animation to clear old nodes

* use same color scheme as rest of dashboard
  • Loading branch information
villebro authored Jul 2, 2021
1 parent fcd6fde commit 1ee7f4e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/plugin-chart-echarts/src/Treemap/transformProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down Expand Up @@ -248,7 +248,6 @@ export default function transformProps(
const series: TreemapSeriesOption[] = [
{
type: 'treemap',
animation: false,
width: '100%',
height: '100%',
nodeClick: undefined,
Expand Down

1 comment on commit 1ee7f4e

@vercel
Copy link

@vercel vercel bot commented on 1ee7f4e Jul 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.