From 46f13d6aab48e7f7f2cafa37a852f989cf294300 Mon Sep 17 00:00:00 2001 From: Robert Monfera Date: Wed, 9 Jun 2021 19:23:22 +0200 Subject: [PATCH] fix: icicle and flame should ignore the grouping --- src/chart_types/partition_chart/layout/viewmodel/viewmodel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chart_types/partition_chart/layout/viewmodel/viewmodel.ts b/src/chart_types/partition_chart/layout/viewmodel/viewmodel.ts index b1d7c293a0..12343722e1 100644 --- a/src/chart_types/partition_chart/layout/viewmodel/viewmodel.ts +++ b/src/chart_types/partition_chart/layout/viewmodel/viewmodel.ts @@ -262,7 +262,7 @@ const rawChildNodes = ( const icicleLayout = isIcicle(partitionLayout); const icicleValueToAreaScale = width / totalValue; const icicleAreaAccessor = (e: ArrayEntry) => icicleValueToAreaScale * mapEntryValue(e); - const icicleRowHeight = height / maxDepth; + const icicleRowHeight = height / (maxDepth - 1); const result = sunburst(tree, icicleAreaAccessor, { x0: 0, y0: -icicleRowHeight }, true, false, icicleRowHeight); return icicleLayout ? result