diff --git a/packages/vgrammar-hierarchy/src/utils.ts b/packages/vgrammar-hierarchy/src/utils.ts index 3948d69fb..f03f02785 100644 --- a/packages/vgrammar-hierarchy/src/utils.ts +++ b/packages/vgrammar-hierarchy/src/utils.ts @@ -1,4 +1,4 @@ -import { isNil } from '@visactor/vutils'; +import { isNil, toValidNumber } from '@visactor/vutils'; import type { HierarchicalDatum, HierarchicalNodeElement } from './interface'; export const calculateNodeValue = >( @@ -37,13 +37,13 @@ export const calculateNodeValue =