Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinNagpal committed Feb 22, 2025
1 parent b6f6709 commit f903184
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion insights-ui/src/app/investment-sectors/InvestmentSectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ interface TreeGraphNode {
name: string;
attributes?: { id: string };
children?: TreeGraphNode[];
isExpanded?: boolean;
}

const convertToTreeRecursive = (node: Node): TreeGraphNode => {
Expand All @@ -45,7 +46,10 @@ export default function InvestmentSectors() {
collapsible
zoomable
nodeSize={{ x: 300, y: 200 }}
depthFactor={500}
separation={{ siblings: 1, nonSiblings: 1 }}
initialDepth={1}
shouldCollapseNeighborNodes={true}
renderCustomNodeElement={({ nodeDatum, toggleNode }) => (
<g>
<rect
Expand All @@ -66,7 +70,7 @@ export default function InvestmentSectors() {
<div
style={{
color: 'var(--text-color)',
fontSize: '12px',
fontSize: '15px',
lineHeight: '1.2',
textAlign: 'center',
display: 'flex',
Expand Down

0 comments on commit f903184

Please sign in to comment.