I found this interesting resource at
Instead of the usual method using d3.json("flare.json", function(root) {
I'd like to know how to use the JSON data directly within the HTML file. For instance, if I have:
var json = [{
"name": "flare",
"children": [
{"name": "analytics",
"children": [
{"name": "cluster","children": [{"name": "AgglomerativeCluster", "size": 3938},
{"name": "CommunityStructure", "size": 3812},
{"name": "HierarchicalCluster", "size": 6714},
{"name": "MergeEdge", "size": 743}
]
},
How can I implement this data structure in place of an external JSON file?
JSON File Link:
If possible, could someone provide a JSFiddle example for reference?
Thanks in advance.