Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Overview
This PR introduces a fully interactive D3-based force-directed graph component for visualising node-link data inside Retool.
✨ Features
Force-directed graph rendering (D3)
Dynamic node sizing based on usage (
numCalls)Automatic grouping detection (e.g.
model,category, or inferred fields)Custom color mapping per group
Preset + custom themes (with persistence via localStorage)
Interactive UI:
Side panel (InfoPanel):
Theme editor (ThemeBar):
🧠 Data Handling
graphData🎨 Theming
Includes preset themes:
Plus:
⚙️ Integration
@tryretool/custom-component-supportRetool.useStateObjectfor dynamic data binding📁 Main Component
ForceGraphComponent🧪 Notes
ResizeObserver📸 Future Improvements (optional)
✅ Summary
This adds a production-ready, highly customizable graph visualisation component with strong UX, theming flexibility, and robust data handling.