You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, after displaying query results in the graph, the view does not automatically adjust, potentially requiring manual zooming or panning to see the results clearly. This enhancement aims to implement an automatic zoom-in feature, ensuring that the results are immediately visible and centered within the graph view.
The following might work:
document.addEventListener("DOMContentLoaded",function(){constgraphContainer=document.getElementById('graph-container');constgraph=document.getElementById('3d-graph');constGraph=ForceGraph3D()(graph)// other graph attributes.width(graphContainer.clientWidth).height(graphContainer.clientHeight).cameraPosition({z: 900});// Optional: Add window resize listener to adjust graph size dynamicallywindow.addEventListener('resize',()=>{Graph.width(graphContainer.clientWidth).height(graphContainer.clientHeight);});// Initial resize to fit the containerGraph.width(graphContainer.clientWidth).height(graphContainer.clientHeight);});
The text was updated successfully, but these errors were encountered:
Currently, after displaying query results in the graph, the view does not automatically adjust, potentially requiring manual zooming or panning to see the results clearly. This enhancement aims to implement an automatic zoom-in feature, ensuring that the results are immediately visible and centered within the graph view.
The following might work:
The text was updated successfully, but these errors were encountered: