Created
April 30, 2025 02:39
-
-
Save documentprocessing/c4c1f01c9115ffad6729b5f383839a7f to your computer and use it in GitHub Desktop.
Custom Styling with JSON Crack
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
const options = { | |
theme: 'dark', | |
nodeStyle: { | |
object: { fill: '#4CAF50' }, | |
array: { fill: '#2196F3' }, | |
value: { fill: '#FFC107' } | |
}, | |
direction: 'TB' // Top-to-bottom layout | |
}; | |
JsonCrack.draw('container', complexData, options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment