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