File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ function Node({ node }) {
72
72
73
73
if ( isRoot ) return < RootNode node = { node } /> ;
74
74
75
+ console . log ( node )
76
+
75
77
return (
76
78
< Group top = { node . y } left = { node . x } >
77
79
{ node . depth !== 0 && (
@@ -143,12 +145,13 @@ export default function Example({
143
145
margin = defaultMargin ,
144
146
snapshots,
145
147
} ) {
148
+
149
+ clusterDataPopulate ( snapshots ) ;
150
+
146
151
const data = useMemo ( ( ) => hierarchy ( clusterData ) , [ ] ) ;
147
152
const xMax = width - margin . left - margin . right ;
148
153
const yMax = height - margin . top - margin . bottom ;
149
154
150
- clusterDataPopulate ( snapshots ) ;
151
-
152
155
return width < 10 ? null : (
153
156
< svg width = { width } height = { height } >
154
157
< LinearGradient id = "top" from = { green } to = { aqua } />
You can’t perform that action at this time.
0 commit comments