Skip to content

Commit

Permalink
Removed console logs in AtomsRelationship
Browse files Browse the repository at this point in the history
  • Loading branch information
VNguyenCode committed Oct 7, 2020
1 parent b3b0bae commit 03f8d5a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/components/AtomsRelationship.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ function Node({ node }) {

if (isRoot) return <RootNode node={node} />;

console.log(node)

return (
<Group top={node.y} left={node.x}>
{node.depth !== 0 && (
Expand Down Expand Up @@ -147,7 +145,7 @@ export default function Example({
}) {

clusterDataPopulate(snapshots);

const data = useMemo(() => hierarchy(clusterData), []);
const xMax = width - margin.left - margin.right;
const yMax = height - margin.top - margin.bottom;
Expand All @@ -156,6 +154,7 @@ export default function Example({
<svg width={width} height={height}>
<LinearGradient id="top" from={green} to={aqua} />
<rect width={width} height={height} rx={14} fill={background} />

<Cluster root={data} size={[xMax, yMax]}>
{(cluster) => (
<Group top={margin.top} left={margin.left}>
Expand Down

0 comments on commit 03f8d5a

Please sign in to comment.